From dd55899775bd8df1aa7d950916bf288c4e3ecdcf Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 17 Apr 2022 19:35:05 +0200 Subject: [PATCH] Improved I2P interface display in rnstatus --- RNS/Utilities/rnstatus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RNS/Utilities/rnstatus.py b/RNS/Utilities/rnstatus.py index 949717d..4851e8f 100644 --- a/RNS/Utilities/rnstatus.py +++ b/RNS/Utilities/rnstatus.py @@ -100,7 +100,7 @@ def program_setup(configdir, dispall=False, verbosity = 0): if "peers" in ifstat and ifstat["peers"] != None: print(" Peers : {np} reachable".format(np=ifstat["peers"])) - if "i2p_b32" in ifstat: + if "i2p_b32" in ifstat and ifstat["i2p_b32"] != None: print(" I2P B32 : {ep}".format(ep=str(ifstat["i2p_b32"]))) print(" Traffic : {txb}↑\n {rxb}↓".format(rxb=size_str(ifstat["rxb"]), txb=size_str(ifstat["txb"])))