From 596154321886b1936de2cfe42e46743fdbd0eefc Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 19 Jan 2010 10:58:28 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ lib/resolv.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1afb50d3dc..290f71d7b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 19 19:58:26 2010 Nobuyoshi Nakada + + * lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the + defaults of nameserver and port. + Tue Jan 19 14:29:16 2010 Nobuyoshi Nakada * Makefile.in (clean-ext): allow glob patterns. 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) }