From e6dc364272c7963f511b04178caa6edb8a7ff7a7 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: http://svn.ruby-lang.org/repos/ruby/trunk@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/resolv.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/resolv.rb b/lib/resolv.rb index a0c29ffb8..33afad336 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