only use one destination port for now
This commit is contained in:
parent
7d2a92346d
commit
7b4f3b790e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue