зеркало из https://github.com/github/ruby.git
* 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:
Родитель
5961543218
Коммит
926fd9a939
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче