Skip to content
Browse files

Return the correct address family

  • Loading branch information...
1 parent da26e6c commit 7d3b55735d908119f77e21e1babb56348fb8503b @aw aw committed Sep 6, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statsd.rb
View
2 lib/statsd.rb
@@ -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.
Something went wrong with that request. Please try again.