diff --git a/puncher.nim b/puncher.nim index b1c530c..a4f5b41 100644 --- a/puncher.nim +++ b/puncher.nim @@ -63,6 +63,7 @@ proc punch(puncher: Puncher, peerIp: IpAddress, peerPort: Port, # TODO: replace asyncdispatch.sendTo with asyncnet.sendTo (Nim 1.4 required) await sendTo(puncher.sock.getFd().AsyncFD, msg.cstring, msg.len, cast[ptr SockAddr](addr peerAddr), peerSockLen) + await sleepAsync(20) if lowTTL: puncher.sock.getFd.setSockOptInt(IPPROTO_IP, IP_TTL, defaultTTL) except OSError as e: