mirror of
https://github.com/sshuttle/sshuttle.git
synced 2024-11-22 16:03:57 +01:00
Oops, dns_done() crashed if the request had already been timed out.
This commit is contained in:
parent
b570778894
commit
760740e9aa
@ -295,7 +295,7 @@ def _main(listener, fw, ssh_cmd, remotename, python, latency_control,
|
|||||||
|
|
||||||
dnsreqs = {}
|
dnsreqs = {}
|
||||||
def dns_done(chan, data):
|
def dns_done(chan, data):
|
||||||
peer,timeout = dnsreqs.get(chan)
|
peer,timeout = dnsreqs.get(chan) or (None,None)
|
||||||
debug3('dns_done: channel=%r peer=%r\n' % (chan, peer))
|
debug3('dns_done: channel=%r peer=%r\n' % (chan, peer))
|
||||||
if peer:
|
if peer:
|
||||||
del dnsreqs[chan]
|
del dnsreqs[chan]
|
||||||
|
Loading…
Reference in New Issue
Block a user