diff --git a/rootfs/standard/var/www/mynode/device_info.py b/rootfs/standard/var/www/mynode/device_info.py index 73267ec7..2e720c2d 100644 --- a/rootfs/standard/var/www/mynode/device_info.py +++ b/rootfs/standard/var/www/mynode/device_info.py @@ -474,7 +474,7 @@ def get_onion_url_general(): try: if os.path.isfile("/var/lib/tor/mynode/hostname"): with open("/var/lib/tor/mynode/hostname") as f: - return f.read() + return f.read().strip() except: pass return "error" @@ -483,7 +483,7 @@ def get_onion_url_btc(): try: if os.path.isfile("/var/lib/tor/mynode_btc/hostname"): with open("/var/lib/tor/mynode_btc/hostname") as f: - return f.read() + return f.read().strip() except: pass return "error" @@ -492,7 +492,7 @@ def get_onion_url_lnd(): try: if os.path.isfile("/var/lib/tor/mynode_lnd/hostname"): with open("/var/lib/tor/mynode_lnd/hostname") as f: - return f.read() + return f.read().strip() except: pass return "error" @@ -501,7 +501,7 @@ def get_onion_url_electrs(): try: if os.path.isfile("/var/lib/tor/mynode_electrs/hostname"): with open("/var/lib/tor/mynode_electrs/hostname") as f: - return f.read() + return f.read().strip() except: pass return "error"