only ignore SYN packet because it can be the start of a QUIC handshake too
This commit is contained in:
parent
5f03151f81
commit
a04254b07e
|
@ -70,7 +70,9 @@ proc handleMsg*(puncher: Puncher, msg: string, peerIp: IpAddress,
|
||||||
peerPort: Port) =
|
peerPort: Port) =
|
||||||
## Handles an incoming UDP message which may complete the Futures returned by
|
## Handles an incoming UDP message which may complete the Futures returned by
|
||||||
## ``initiate`` and ``respond``.
|
## ``initiate`` and ``respond``.
|
||||||
if msg != "ACK":
|
if msg == "SYN":
|
||||||
|
# We received a SYN packet. We ignore it because we expected it to be
|
||||||
|
# filtered by our NAT.
|
||||||
return
|
return
|
||||||
echo &"handling ACK message from {peerIp}:{peerPort}"
|
echo &"handling ACK message from {peerIp}:{peerPort}"
|
||||||
let (_, myPort) = puncher.sock.getLocalAddr()
|
let (_, myPort) = puncher.sock.getLocalAddr()
|
||||||
|
|
Loading…
Reference in New Issue