mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +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:
|
try:
|
||||||
if os.path.isfile("/var/lib/tor/mynode/hostname"):
|
if os.path.isfile("/var/lib/tor/mynode/hostname"):
|
||||||
with open("/var/lib/tor/mynode/hostname") as f:
|
with open("/var/lib/tor/mynode/hostname") as f:
|
||||||
return f.read()
|
return f.read().strip()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return "error"
|
return "error"
|
||||||
|
@ -483,7 +483,7 @@ def get_onion_url_btc():
|
||||||
try:
|
try:
|
||||||
if os.path.isfile("/var/lib/tor/mynode_btc/hostname"):
|
if os.path.isfile("/var/lib/tor/mynode_btc/hostname"):
|
||||||
with open("/var/lib/tor/mynode_btc/hostname") as f:
|
with open("/var/lib/tor/mynode_btc/hostname") as f:
|
||||||
return f.read()
|
return f.read().strip()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return "error"
|
return "error"
|
||||||
|
@ -492,7 +492,7 @@ def get_onion_url_lnd():
|
||||||
try:
|
try:
|
||||||
if os.path.isfile("/var/lib/tor/mynode_lnd/hostname"):
|
if os.path.isfile("/var/lib/tor/mynode_lnd/hostname"):
|
||||||
with open("/var/lib/tor/mynode_lnd/hostname") as f:
|
with open("/var/lib/tor/mynode_lnd/hostname") as f:
|
||||||
return f.read()
|
return f.read().strip()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return "error"
|
return "error"
|
||||||
|
@ -501,7 +501,7 @@ def get_onion_url_electrs():
|
||||||
try:
|
try:
|
||||||
if os.path.isfile("/var/lib/tor/mynode_electrs/hostname"):
|
if os.path.isfile("/var/lib/tor/mynode_electrs/hostname"):
|
||||||
with open("/var/lib/tor/mynode_electrs/hostname") as f:
|
with open("/var/lib/tor/mynode_electrs/hostname") as f:
|
||||||
return f.read()
|
return f.read().strip()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
return "error"
|
return "error"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user