Added path expiry check to tunnel restoration

pull/10/head
Mark Qvist 2021-10-08 17:09:31 +02:00
rodzic 95f81cab7f
commit 4ca00c6973
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)