need to include protocol here too
This commit is contained in:
parent
5bdb69f214
commit
4be3ffd207
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue