End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Addrinfo#ipv6_unspecified?
ipv6_unspecified?
ext/socket/raddrinfo.c
View on GitHub ↗
static VALUE
addrinfo_ipv6_unspecified_p(VALUE self)
{
struct in6_addr *addr = extract_in6_addr(self);
if (addr && IN6_IS_ADDR_UNSPECIFIED(addr)) return Qtrue;
return Qfalse;
}
Returns true for IPv6 unspecified address (::). It returns false otherwise.
See also
#ipv6_unique_local?
#ipv6_v4compat?
#ipv6_to_ipv4
#ipv6_v4mapped?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0