break both loop to stop packet flood
This commit is contained in:
parent
7bc90f02b8
commit
239131eae5
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue