We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

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