mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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/branches/ruby_1_8@10135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3a67582698
commit
944326afdd
2 changed files with 6 additions and 1 deletions
|
@ -621,7 +621,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue