diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-07 02:56:06 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-05-07 02:56:06 +0000 |
commit | 8afbf5cc03e5dc94a22dea209e50db7c64bf9eda (patch) | |
tree | 7148e481dbb310a74af41a07609a8c96efc888e1 /lib/resolv.rb | |
parent | 08b5a86487d16b32c7dd6704ec350d775be6120e (diff) | |
download | ruby-8afbf5cc03e5dc94a22dea209e50db7c64bf9eda.tar.gz |
* lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):
Use AF_INET6 for nameservers containing colons.
patch by Stephan Maka.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 6bc41d7967..300901fdf0 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -637,7 +637,7 @@ class Resolv super() @host = host @port = port - @sock = UDPSocket.new + @sock = UDPSocket.new(host.index(':') ? Socket::AF_INET6 : Socket::AF_INET) @sock.connect(host, port) @sock.fcntl(Fcntl::F_SETFD, 1) if defined? Fcntl::F_SETFD @id = -1 |