diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-02-04 13:41:18 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-02-04 04:55:16 +0000 |
commit | 10d06b9a7231e54e5f6fe34437b9c583ecefca88 (patch) | |
tree | ba5fda6e8c77e216488ba93b777a5af7c6986da3 /lib/resolv.rb | |
parent | 7317f96727725ca37ddb06011918deb841de371c (diff) |
[ruby/resolv] Load win32/resolv with rake test
https://github.com/ruby/resolv/commit/3ecfce3626
Diffstat (limited to 'lib/resolv.rb')
-rw-r--r-- | lib/resolv.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/resolv.rb b/lib/resolv.rb index 2ec1d6c6f9..42a41d2527 100644 --- a/lib/resolv.rb +++ b/lib/resolv.rb @@ -182,7 +182,7 @@ class Resolv class Hosts if WINDOWS begin - require 'win32/resolv' + require 'win32/resolv' unless defined?(Win32::Resolv) DefaultFileName = Win32::Resolv.get_hosts_path || IO::NULL rescue LoadError end @@ -1023,7 +1023,7 @@ class Resolv config_hash = Config.parse_resolv_conf(filename) else if WINDOWS - require 'win32/resolv' + require 'win32/resolv' unless defined?(Win32::Resolv) search, nameserver = Win32::Resolv.get_resolv_info config_hash = {} config_hash[:nameserver] = nameserver if nameserver |