From 7b4f3b790e70aa3d6180b35ee939744c283ab9f2 Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Wed, 26 Aug 2020 21:34:35 +0200 Subject: [PATCH] only use one destination port for now --- tcp_syni.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcp_syni.nim b/tcp_syni.nim index 1bf4ae1..58724c6 100644 --- a/tcp_syni.nim +++ b/tcp_syni.nim @@ -102,7 +102,7 @@ proc initPuncher*(srcPort: Port, dstIp: IpAddress, dstPorts: seq[Port], seqNums: seq[uint32] = @[]): TcpSyniPuncher = let localIp = getPrimaryIPAddr(dstIp) # TODO: do real port prediction - var predictedDstPorts = newSeq[Port](3) + var predictedDstPorts = newSeq[Port](1) let basePort = min(dstPorts[1].uint16, uint16.high - (predictedDstPorts.len - 1).uint16) for i in 0 .. predictedDstPorts.len - 1: