addr.is_ipv6()

Returns true if the address family of the given address is IPv6.

Format

BOOL
addr.is_ipv6(IP ip)

Examples

1
2
3
if (addr.is_ipv6(client.ip)) {
  # the client connected over IPv6 */
}