mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/resolv.rb (Resolv::Config.default_config_hash): return an
empty hash when resolv.conf is not available. [ruby-core:27620] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5961543218
commit
926fd9a939
2 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
|||
Tue Jan 19 19:58:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Jan 19 20:00:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* lib/resolv.rb (Resolv::Config.default_config_hash): return an
|
||||
empty hash when resolv.conf is not available. [ruby-core:27620]
|
||||
|
||||
* lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the
|
||||
defaults of nameserver and port.
|
||||
|
|
|
@ -850,7 +850,7 @@ class Resolv
|
|||
config_hash[:search] = [search].flatten if search
|
||||
end
|
||||
end
|
||||
config_hash
|
||||
config_hash || {}
|
||||
end
|
||||
|
||||
def lazy_initialize
|
||||
|
|
Loading…
Reference in a new issue