add debug output
This commit is contained in:
parent
22950304fe
commit
07d0e30059
2
udp.nim
2
udp.nim
|
@ -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]))
|
||||
|
|
Loading…
Reference in New Issue