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 | 29b538fa7146f899775b001a55bf1716c486b293 (patch) | |
tree | eb0688cb6ea59353ba8794500bbebc4b35e29951 /lib | |
parent | 597179bb95812dcf90b75520d3dd17d94ac16d51 (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/trunk@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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 a0c29ffb8a..33afad3365 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -777,6 +777,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 |