diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-10-22 10:45:45 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-10-22 10:45:45 +0500 |
commit | d82ce214144527babd2dbb0ad59cedfe16142908 (patch) | |
tree | d42026c47f9f846d8f7bc5b7bfbdd21645f1bb93 /net | |
parent | 2d18b1e9a70fc44919fad7fb2e971e6ce24ece5a (diff) | |
download | prosody-d82ce214144527babd2dbb0ad59cedfe16142908.tar.gz prosody-d82ce214144527babd2dbb0ad59cedfe16142908.zip |
net.dns: Fixed a traceback when util/windows.dll is unavailable on windows.
Diffstat (limited to 'net')
-rw-r--r-- | net/dns.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dns.lua b/net/dns.lua index d40174df..c5f219a8 100644 --- a/net/dns.lua +++ b/net/dns.lua @@ -531,7 +531,7 @@ end 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 |