End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Socket#ipv6only!
ipv6only!
ext/socket/lib/socket.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/ext/socket/lib/socket.rb, line 467
def ipv6only!
if defined? Socket::IPV6_V6ONLY
self.setsockopt(:IPV6, :V6ONLY, 1)
end
end
enable the socket option IPV6_V6ONLY if IPV6_V6ONLY is available.