# HG changeset patch # User Waqas Hussain # Date 1287726345 -18000 # Node ID f2aca3e0fe3bafe022fd3141c9171e8119c8a3ec # Parent 90b21508ac273eb98690204fb5470031931b7037 net.dns: Fixed a traceback when util/windows.dll is unavailable on windows. diff -r 90b21508ac27 -r f2aca3e0fe3b net/dns.lua --- a/net/dns.lua Fri Oct 22 06:33:30 2010 +0100 +++ b/net/dns.lua Fri Oct 22 10:45:45 2010 +0500 @@ -531,7 +531,7 @@ function resolver:adddefaultnameservers() -- - - - - adddefaultnameservers if is_windows then - if windows then + if windows and windows.get_nameservers then for _, server in ipairs(windows.get_nameservers()) do self:addnameserver(server); end