mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-25 02:10:24 +00:00
fix nt dns init and remove apply() use
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1123 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
1c5d8b89d2
commit
d13f779d74
1 changed files with 5 additions and 3 deletions
|
|
@ -92,8 +92,7 @@ def init_dns_resolver_nt ():
|
|||
key = winreg.key_handle(winreg.HKEY_LOCAL_MACHINE,
|
||||
r"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DNSRegisteredAdapters")
|
||||
for subkey in key.subkeys():
|
||||
count, counttype = subkey['DNSServerAddressCount']
|
||||
values, valuestype = subkey['DNSServerAddresses']
|
||||
values = subkey.get("DNSServerAddresses", "")
|
||||
for server in winreg.binipdisplay(values):
|
||||
if server:
|
||||
defaults['server'].append(str(server))
|
||||
|
|
@ -300,7 +299,7 @@ class DnsAsyncRequest(DnsRequest,asyncore.dispatcher_with_send):
|
|||
if self.args['protocol'] == 'udp':
|
||||
self.response=self.processUDPReply()
|
||||
if self.donefunc:
|
||||
apply(self.donefunc,(self,))
|
||||
self.donefunc(*self)
|
||||
def handle_connect(self):
|
||||
self.send(self.request)
|
||||
def handle_write(self):
|
||||
|
|
@ -310,6 +309,9 @@ class DnsAsyncRequest(DnsRequest,asyncore.dispatcher_with_send):
|
|||
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.10 2003/12/28 23:01:51 calvin
|
||||
# fix nt dns init and remove apply() use
|
||||
#
|
||||
# Revision 1.9 2003/12/20 11:27:54 calvin
|
||||
# more robust registry indexing
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue