From 76d75e9a3e3c40227f344de09df022062a74fb2d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 24 Sep 2021 14:16:25 +0200 Subject: [PATCH] Updated rnpath utility --- RNS/Utilities/rnpath.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rnpath.py b/RNS/Utilities/rnpath.py index 3251438..8ea69cd 100644 --- a/RNS/Utilities/rnpath.py +++ b/RNS/Utilities/rnpath.py @@ -37,7 +37,11 @@ def program_setup(configdir, destination_hexhash): sys.stdout.flush() i = (i+1)%len(syms) - print("\rPath found, destination "+RNS.prettyhexrep(destination_hash)+" is "+str(RNS.Transport.hops_to(destination_hash))+" hops away via "+RNS.prettyhexrep(RNS.Transport.next_hop(destination_hash))+" on "+str(RNS.Transport.next_hop_interface(destination_hash))) + hops = str(RNS.Transport.hops_to(destination_hash)) + next_hop = RNS.prettyhexrep(RNS.Transport.next_hop(destination_hash)) + next_hop_interface = str(RNS.Transport.next_hop_interface(destination_hash)) + + print("\rPath found, destination "+RNS.prettyhexrep(destination_hash)+" is "+hops+" hops away via "+next_hop+" on "+next_hop_interface) def main():