From 4be2ae6c706e9561d4907baff3cf52cc4a4d0021 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 21 Sep 2023 18:32:36 +0200 Subject: [PATCH] Fixed verbose output bug in rnprobe --- RNS/Utilities/rnprobe.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RNS/Utilities/rnprobe.py b/RNS/Utilities/rnprobe.py index 7616b63..6589fdb 100644 --- a/RNS/Utilities/rnprobe.py +++ b/RNS/Utilities/rnprobe.py @@ -100,7 +100,10 @@ def program_setup(configdir, destination_hexhash, size=None, full_name = None, v receipt = probe.send() if more_output: - more = " via "+RNS.prettyhexrep(reticulum.get_next_hop(destination_hash))+" on "+str(reticulum.get_next_hop_if_name(destination_hash)) + nhd = reticulum.get_next_hop(destination_hash) + via_str = " via "+RNS.prettyhexrep(nhd) if nhd != None else "" + if_str = " on "+str(reticulum.get_next_hop_if_name(destination_hash)) if reticulum.get_next_hop_if_name(destination_hash) != "None" else "" + more = via_str+if_str else: more = ""