diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-31 16:55:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-31 16:55:54 +0000 |
commit | 84ee429e83873a975150a9cdaca1568f424701c1 (patch) | |
tree | 7c761d9aa2207c0a9ee1713b7e165adc6a1c7ade /lib/resolv.rb | |
parent | b9bdeb035c1a182d48918c41ab13f8f122272a51 (diff) |
* lib/resolv.rb (Resolv::Config.default_config_hash): requires
win32/resolv to use Win32::Resolv. [ruby-dev:34138]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 80032255c8..d4c2eb414d 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -785,6 +785,7 @@ class Resolv config_hash = Config.parse_resolv_conf(filename) else if /mswin32|cygwin|mingw|bccwin/ =~ RUBY_PLATFORM + require 'win32/resolv' search, nameserver = Win32::Resolv.get_resolv_info config_hash = {} config_hash[:nameserver] = nameserver if nameserver |