LOG IN SIGN UP
Documentation

addr.is_ipv4()

Return 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 */
}