From 4be3ffd2070845f1ea9b41058bf04ff3c2fe522d Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Sun, 25 Oct 2020 10:50:21 +0100 Subject: [PATCH] need to include protocol here too --- punchd.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/punchd.nim b/punchd.nim index a61b963..2acd7a7 100644 --- a/punchd.nim +++ b/punchd.nim @@ -58,8 +58,8 @@ proc acceptConnections(punchd: Punchd, ip: IpAddress, port: Port, let peer = acceptFuture.read() let (peerAddr, peerPort) = peer.getPeerAddr() let peerIp = parseIpAddress(peerAddr) - let query = Attempt(srcIp: ip, srcPort: port, dstIp: peerIp, - dstPorts: @[peerPort]) + let query = Attempt(protocol: protocol, srcIp: ip, srcPort: port, + dstIp: peerIp, dstPorts: @[peerPort]) let i = punchd.attempts.find(query) if i == -1: echo "Accepted connection, but no attempt found. Discarding."