ipv6only!()
enable the socket option IPV6_V6ONLY if IPV6_V6ONLY is available.
# File ext/socket/lib/socket.rb, line 449 def ipv6only! if defined? Socket::IPV6_V6ONLY self.setsockopt(:IPV6, :V6ONLY, 1) end end