only handle ACK messages, not SYN (we expect them to be filtered by our NAT)
This commit is contained in:
parent
06d7d29dc0
commit
dc7c94ed0d
|
@ -70,6 +70,8 @@ proc handleMsg*(puncher: Puncher, msg: string, peerIp: IpAddress,
|
|||
peerPort: Port) =
|
||||
## Handles an incoming UDP message which may complete the Futures returned by
|
||||
## ``initiate`` and ``respond``.
|
||||
if msg != "ACK":
|
||||
return
|
||||
let (_, myPort) = puncher.sock.getLocalAddr()
|
||||
let query = Attempt(srcPort: myPort, dstIp: peerIp, dstPorts: @[peerPort])
|
||||
let i = puncher.attempts.find(query)
|
||||
|
|
Loading…
Reference in New Issue