Skip to content

Commit

Permalink
Return the correct address family
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Sep 6, 2013
1 parent da26e6c commit 7d3b557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/statsd.rb
Expand Up @@ -395,6 +395,6 @@ def socket
end

def addr_family
Addrinfo.udp(@host, @port).ipv6 ? Socket::AF_INET6 : Socket::AF_INET
Addrinfo.udp(@host, @port).ipv6? ? Socket::AF_INET6 : Socket::AF_INET
end
end

0 comments on commit 7d3b557

Please sign in to comment.