break both loop to stop packet flood

This commit is contained in:
Christian Ulrich 2020-08-23 16:02:28 +02:00
parent 7bc90f02b8
commit 239131eae5
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ proc captureAndResendAck(puncher: TcpSyniPuncher, captureFd: AsyncFD,
tcpSeqNumber: parsed.tcpSeqNumber, tcpSeqNumber: parsed.tcpSeqNumber,
tcpFlags: parsed.tcpFlags) tcpFlags: parsed.tcpFlags)
await injectFd.injectTcpPacket(ipPacket) await injectFd.injectTcpPacket(ipPacket)
break return
proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: array[3, Port], proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: array[3, Port],
seqNums: seq[uint32] = @[]): TcpSyniPuncher = seqNums: seq[uint32] = @[]): TcpSyniPuncher =