Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Addrinfo#ipv6_v4mapped?
ipv6_v4mapped?
ext/socket/raddrinfo.c
View on GitHub ↗
static VALUE
addrinfo_ipv6_v4mapped_p(VALUE self)
{
struct in6_addr *addr = extract_in6_addr(self);
if (addr && IN6_IS_ADDR_V4MAPPED(addr)) return Qtrue;
return Qfalse;
}
Returns true for IPv4-mapped IPv6 address (::ffff:0:0/80). It returns false otherwise.
See also
#ipv6_v4compat?
#listen
#ipv6_unspecified?
#pfamily
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0