diff options
Diffstat (limited to 'ext/Win32API')
-rw-r--r-- | ext/Win32API/lib/win32/resolv.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Win32API/lib/win32/resolv.rb b/ext/Win32API/lib/win32/resolv.rb index 5a99d04d55..6534d20760 100644 --- a/ext/Win32API/lib/win32/resolv.rb +++ b/ext/Win32API/lib/win32/resolv.rb @@ -84,7 +84,7 @@ if info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT [ 'NameServer', 'DhcpNameServer' ].each do |key| ns = regif.read_s(key) unless ns.empty? - nameserver.concat(ns.split(/\s+/)) + nameserver.concat(ns.split(/[,\s]\s*/)) break end end @@ -141,7 +141,7 @@ else slist = reg.read_s("SearchList") search << domain unless domain.empty? search.concat(slist.split(/,\s*/)) - nameserver.concat(ns.split(/,\s*/)) + nameserver.concat(ns.split(/[,\s]\s*/)) end end rescue Registry::Error |