# File lib/fluent/compat/socket_util.rb, line 27 def create_udp_socket(host) if IPAddr.new(IPSocket.getaddress(host)).ipv4? UDPSocket.new else UDPSocket.new(Socket::AF_INET6) end end
# File lib/fluent/compat/socket_util.rb, line 27 def create_udp_socket(host) if IPAddr.new(IPSocket.getaddress(host)).ipv4? UDPSocket.new else UDPSocket.new(Socket::AF_INET6) end end