1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/resolv.rb (Config.default_config_hash): when multiple domains

are set, Win32::Resolv.get_resolv_info returns Array.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2004-08-23 03:44:32 +00:00
parent 345df36cda
commit 3ee84033f1
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Mon Aug 23 12:40:56 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* lib/resolv.rb (Config.default_config_hash): when multiple domains
are set, Win32::Resolv.get_resolv_info returns Array.
Sun Aug 22 01:15:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org> Sun Aug 22 01:15:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect): * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):

View file

@ -751,7 +751,7 @@ class Resolv
search, nameserver = Win32::Resolv.get_resolv_info search, nameserver = Win32::Resolv.get_resolv_info
config_hash = {} config_hash = {}
config_hash[:nameserver] = nameserver if nameserver config_hash[:nameserver] = nameserver if nameserver
config_hash[:search] = [search] if search config_hash[:search] = [search].flatten if search
end end
end end
config_hash config_hash