Software /
code /
prosody
Changeset
3544:f2aca3e0fe3b
net.dns: Fixed a traceback when util/windows.dll is unavailable on windows.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Fri, 22 Oct 2010 10:45:45 +0500 |
parents | 3543:90b21508ac27 |
children | 3545:c85f9a4ae1c4 |
files | net/dns.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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