diff --git a/tcp_syni.nim b/tcp_syni.nim index df5536e..bce5907 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -257,6 +257,7 @@ proc doAccept(puncher: TcpSyniPuncher, srcIp: IpAddress, let i = puncher.findAcceptAttempt(srcIp, srcPort, peerIp, @[peerPort]) if i == -1: echo "Accepted connection, but no attempt found. Discarding." + peer.close() continue else: let attempt = puncher.acceptAttempts[i]