Skip to main content

isUnspecified

Return true if the IP is unspecified (0.0.0.0 for IPv4 or :: for IPv6).


Examples

Unspecified IPv4:

ip("0.0.0.0/0").isUnspecified

Unspecified IPv6:

ip("::/0").isUnspecified