summaryrefslogtreecommitdiff
path: root/lib/resolv.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-19 10:58:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-19 10:58:28 +0000
commit596154321886b1936de2cfe42e46743fdbd0eefc (patch)
tree8fc68143076722f1de18a8b8781a64ee3bce6d9c /lib/resolv.rb
parent1b26041724a9b74eaa7364a6693a2a1040042fb3 (diff)
* 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.rb2
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) }