Move BTC LND Tor toggle to use settings_file_exists
This commit is contained in:
parent
09f93a3961
commit
20c2b7e398
|
@ -1126,13 +1126,13 @@ def reset_tor():
|
||||||
os.system("rm -rf /mnt/hdd/mynode/lnd/v3_onion_private_key")
|
os.system("rm -rf /mnt/hdd/mynode/lnd/v3_onion_private_key")
|
||||||
|
|
||||||
def is_btc_lnd_tor_enabled():
|
def is_btc_lnd_tor_enabled():
|
||||||
return os.path.isfile("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled")
|
settings_file_exists("btc_lnd_tor_enabled")
|
||||||
|
|
||||||
def enable_btc_lnd_tor():
|
def enable_btc_lnd_tor():
|
||||||
touch("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled")
|
create_settings_file("btc_lnd_tor_enabled")
|
||||||
|
|
||||||
def disable_btc_lnd_tor():
|
def disable_btc_lnd_tor():
|
||||||
delete_file("/mnt/hdd/mynode/settings/.btc_lnd_tor_enabled")
|
delete_settings_file("btc_lnd_tor_enabled")
|
||||||
|
|
||||||
def is_aptget_tor_enabled():
|
def is_aptget_tor_enabled():
|
||||||
return os.path.isfile("/mnt/hdd/mynode/settings/torify_apt_get")
|
return os.path.isfile("/mnt/hdd/mynode/settings/torify_apt_get")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user