diff --git a/puncher.nim b/puncher.nim index a4f5b41..82d517f 100644 --- a/puncher.nim +++ b/puncher.nim @@ -92,11 +92,14 @@ proc handleMsg*(puncher: Puncher, msg: string, peerIp: IpAddress, # We received a SYN packet. We ignore it because we expected it to be # filtered by our NAT. return - echo &"handling ACK message from {peerIp}:{peerPort}" let (_, myPort) = puncher.sock.getLocalAddr() let query = Attempt(srcPort: myPort, dstIp: peerIp, dstPorts: @[peerPort]) let i = puncher.attempts.find(query) if i != -1: + if msg == "ACK": + echo &"handling ACK message from {peerIp}:{peerPort}" + else: + echo &"handling QUIC message from {peerIp}:{peerPort}" puncher.attempts[i].future.complete(peerPort) puncher.attempts.del(i)