From cdb08325ccf799c0b943d1ae799fe449d408657b Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 28 Aug 2021 20:34:41 +0200 Subject: [PATCH] Fixed timeout calculation condition. --- RNS/Link.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RNS/Link.py b/RNS/Link.py index 637f46c..cae3321 100644 --- a/RNS/Link.py +++ b/RNS/Link.py @@ -83,6 +83,7 @@ class Link: link = Link(owner = owner, peer_pub_bytes=data[:Link.ECPUBSIZE//2], peer_sig_pub_bytes=data[Link.ECPUBSIZE//2:Link.ECPUBSIZE]) link.set_link_id(packet) link.destination = packet.destination + link.establishment_timeout = Link.ESTABLISHMENT_TIMEOUT_PER_HOP * max(1, packet.hops) RNS.log("Validating link request "+RNS.prettyhexrep(link.link_id), RNS.LOG_VERBOSE) link.handshake() link.attached_interface = packet.receiving_interface