Unverified Commit 7e726bc2 authored by Brian May's avatar Brian May Committed by GitHub

Merge pull request #558 from skuhl/dns-to-none

Fix "DNS request from ... to None" messages.
parents 9b036fc6 227412e2
...@@ -427,7 +427,13 @@ def ondns(listener, method, mux, handlers): ...@@ -427,7 +427,13 @@ def ondns(listener, method, mux, handlers):
if t is None: if t is None:
return return
srcip, dstip, data = t srcip, dstip, data = t
debug1('DNS request from %r to %r: %d bytes\n' % (srcip, dstip, len(data))) # dstip is None if we are using a method where we can't determine
# the destination IP of the DNS request that we captured from the client.
if dstip is None:
debug1('DNS request from %r: %d bytes\n' % (srcip, len(data)))
else:
debug1('DNS request from %r to %r: %d bytes\n' %
(srcip, dstip, len(data)))
chan = mux.next_channel() chan = mux.next_channel()
dnsreqs[chan] = now + 30 dnsreqs[chan] = now + 30
mux.send(chan, ssnet.CMD_DNS_REQ, data) mux.send(chan, ssnet.CMD_DNS_REQ, data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment