Software /
code /
prosody
Comparison
net/dns.lua @ 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 |
parent | 3540:bc139431830b |
child | 3719:0f87632b87e9 |
comparison
equal
deleted
inserted
replaced
3543:90b21508ac27 | 3544:f2aca3e0fe3b |
---|---|
529 end | 529 end |
530 | 530 |
531 | 531 |
532 function resolver:adddefaultnameservers() -- - - - - adddefaultnameservers | 532 function resolver:adddefaultnameservers() -- - - - - adddefaultnameservers |
533 if is_windows then | 533 if is_windows then |
534 if windows then | 534 if windows and windows.get_nameservers then |
535 for _, server in ipairs(windows.get_nameservers()) do | 535 for _, server in ipairs(windows.get_nameservers()) do |
536 self:addnameserver(server); | 536 self:addnameserver(server); |
537 end | 537 end |
538 end | 538 end |
539 if not self.server or #self.server == 0 then | 539 if not self.server or #self.server == 0 then |