add debug output

This commit is contained in:
Christian Ulrich 2020-11-15 14:16:00 +01:00
parent 22950304fe
commit 07d0e30059
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,7 @@ method parseInitiateRequest*(puncher: UdpPuncher, args: string): Attempt =
let localIp = getPrimaryIPAddr(parsed.dstIp)
let predictedDstPorts = predictPortRange(parsed.dstPort,
parsed.probedDstPorts)
echo "predicted destination ports: ", predictedDstPorts
Attempt(protocol: IPPROTO_UDP, srcIp: localIp, srcPort: parsed.srcPort,
dstIp: parsed.dstIp, dstPorts: predictedDstPorts,
acceptFuture: none(Future[AsyncSocket]))
@ -80,6 +81,7 @@ method parseRespondRequest*(puncher: UdpPuncher, args: string): Attempt =
let localIp = getPrimaryIPAddr(parsed.dstIp)
let predictedDstPorts = predictPortRange(parsed.dstPort,
parsed.probedDstPorts)
echo "predicted destination ports: ", predictedDstPorts
Attempt(protocol: IPPROTO_UDP, srcIp: localIp, srcPort: parsed.srcPort,
dstIp: parsed.dstIp, dstPorts: predictedDstPorts,
acceptFuture: none(Future[AsyncSocket]))