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