We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e33c565 commit b146d74Copy full SHA for b146d74
lib/redis/connection/ruby.rb
@@ -115,8 +115,7 @@ class TCPSocket < ::Socket
115
include SocketMixin
116
117
def self.connect(host, port, timeout)
118
- # Limit lookup to IPv4, as Redis doesn't yet do IPv6...
119
- addr = ::Socket.getaddrinfo(host, nil, Socket::AF_INET)
+ addr = ::Socket.getaddrinfo(host, nil, Socket::AF_UNSPEC)
120
sock = new(::Socket.const_get(addr[0][0]), Socket::SOCK_STREAM, 0)
121
sockaddr = ::Socket.pack_sockaddr_in(port, addr[0][3])
122
0 commit comments