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): 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
This commit is contained in:
parent
b9bdeb035c
commit
84ee429e83
3 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue