Skip to content

Commit ad98d74

Browse files
Instead of only setting a single domain name via self.domain, set self.searchlist which already supports an array of items (thanks Spencer!).
Co-authored-by: Spencer McIntyre <[email protected]>
1 parent 9be50f7 commit ad98d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/dns/resolver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ def parse_config_file
10811081
if RUBY_PLATFORM =~ /mswin32|cygwin|mingw|bccwin/
10821082
require 'win32/resolv'
10831083
arr = Win32::Resolv.get_resolv_info
1084-
self.domain = arr[0]&.first
1084+
self.searchlist = arr[0]
10851085
self.nameservers = arr[1]
10861086
else
10871087
begin

0 commit comments

Comments
 (0)