From 239131eae556f8c279616ce985bb151fd6afcc62 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sun, 23 Aug 2020 16:02:28 +0200 Subject: [PATCH] break both loop to stop packet flood --- tcp_syni.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp_syni.nim b/tcp_syni.nim index 7413c49..4ff7be8 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -103,7 +103,7 @@ proc captureAndResendAck(puncher: TcpSyniPuncher, captureFd: AsyncFD, tcpSeqNumber: parsed.tcpSeqNumber, tcpFlags: parsed.tcpFlags) await injectFd.injectTcpPacket(ipPacket) - break + return proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: array[3, Port], seqNums: seq[uint32] = @[]): TcpSyniPuncher =