From 29b538fa7146f899775b001a55bf1716c486b293 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 31 Mar 2008 16:55:54 +0000 Subject: * 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 --- lib/resolv.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/resolv.rb') 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 -- cgit v1.2.3