mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 06:28:07 +00:00
Remove extra space from onion url
This commit is contained in:
parent
8769c5d778
commit
2a4f8c7e2d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user