diff --git a/puncher.nim b/puncher.nim index d985806..11a6562 100644 --- a/puncher.nim +++ b/puncher.nim @@ -1,4 +1,4 @@ -import asyncdispatch, asyncnet, net, port_prediction +import asyncdispatch, asyncnet, net, port_prediction, strformat from nativesockets import SockAddr, SockAddr_storage, SockLen from sequtils import any @@ -41,6 +41,7 @@ proc punch(puncher: Puncher, peerIp: IpAddress, peerPort: Port, raise newException(PunchHoleError, "hole punching for given parameters already active") puncher.attempts.add(attempt) + echo &"sending msg {msg} to {peerIp}, predicted ports: {attempt.dstPorts}" var peerAddr: Sockaddr_storage var peerSockLen: SockLen try: