diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-19 10:58:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-19 10:58:28 +0000 |
commit | 596154321886b1936de2cfe42e46743fdbd0eefc (patch) | |
tree | 8fc68143076722f1de18a8b8781a64ee3bce6d9c /lib/resolv.rb | |
parent | 1b26041724a9b74eaa7364a6693a2a1040042fb3 (diff) | |
download | ruby-596154321886b1936de2cfe42e46743fdbd0eefc.tar.gz |
* lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the
defaults of nameserver and port.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26357 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 bcc677b2a7..cf1a1b9a75 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -885,7 +885,7 @@ class Resolv @ndots = config_hash[:ndots] if config_hash.include? :ndots if @nameserver_port.empty? - @nameserver_port = ['0.0.0.0', Port] + @nameserver_port << ['0.0.0.0', Port] end if @search @search = @search.map {|arg| Label.split(arg) } |