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/trunk@10135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08b5a86487
commit
8afbf5cc03
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun May 7 03:09:51 2006 Stephan Maka <stephan@spaceboyz.net>
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):
|
||||
Use AF_INET6 for nameservers containing colons.
|
||||
|
||||
Mon May 1 17:58:16 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* ext/win32ole/win32ole.c (add_event_call_back): should not
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue