MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / dns_done

Function dns_done

client.py:215–221  ·  view source on GitHub ↗
(chan, data)

Source from the content-addressed store, hash-verified

213
214dnsreqs = {}
215def dns_done(chan, data):
216 peer,sock,timeout = dnsreqs.get(chan) or (None,None,None)
217 debug3('dns_done: channel=%r peer=%r\n' % (chan, peer))
218 if peer:
219 del dnsreqs[chan]
220 debug3('doing sendto %r\n' % (peer,))
221 sock.sendto(data, peer)
222
223
224def ondns(listener, mux, handlers):

Callers 1

ondnsFunction · 0.85

Calls 1

debug3Function · 0.85

Tested by

no test coverage detected