is_v6
Checks whether an IP address has version number 6.
is_v6(x:ip) -> bool
Description
The ipv6
function checks whether the version number of a given IP address x
is 6.
Examples
Check if an IP is IPv6
from {
x: 1.2.3.4.is_v6(),
y: ::1.is_v6(),
}
{
x: false,
y: true,
}
See Also
is_v4