From 4ca00c6973659fa7b480a18296418ac9d6bc32f5 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 8 Oct 2021 17:09:31 +0200 Subject: [PATCH] Added path expiry check to tunnel restoration --- RNS/Transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index d5603d0..dc07bd3 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1115,7 +1115,7 @@ class Transport: else: RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because a newer path with fewer hops exist", RNS.LOG_DEBUG) else: - if time.time() < expires + if time.time() < expires: should_add = True else: RNS.log("Did not restore path to "+RNS.prettyhexrep(packet.destination_hash)+" because it has expired", RNS.LOG_DEBUG)