- Miscellaneous functions
- addr
.extract_bits() - addr
.is_ipv4() - addr
.is_ipv6() - http_status_matches()
- if()
- setcookie
.get_value_by_name() - std
.collect() - subfield()
addr.is_ipv4()
Returns true if the address family of the given address is IPv4.
Format
BOOL
addr.is_ipv4(IP ip)
Examples
1
2
3
if (addr.is_ipv4(client.ip)) {
# the client connected over IPv4 */
}