mirror of
https://github.com/basicswap/basicswap.git
synced 2024-12-23 03:49:25 +00:00
fix for remote monero daemons on tor enabled installs
This commit is contained in:
parent
8318961f0b
commit
e4f196411a
1 changed files with 2 additions and 1 deletions
|
@ -996,7 +996,7 @@ def modify_tor_config(settings, coin, tor_control_password=None, enable=False):
|
||||||
fp.write('proxy-allow-dns-leaks=0\n')
|
fp.write('proxy-allow-dns-leaks=0\n')
|
||||||
fp.write('no-igd=1\n')
|
fp.write('no-igd=1\n')
|
||||||
|
|
||||||
wallet_tor_settings = ('proxy=',)
|
wallet_tor_settings = ('proxy=', 'daemon-ssl-allow-any-cert=',)
|
||||||
with open(wallet_conf_path, 'w') as fp:
|
with open(wallet_conf_path, 'w') as fp:
|
||||||
with open(wallet_conf_path + '.last') as fp_in:
|
with open(wallet_conf_path + '.last') as fp_in:
|
||||||
# Disable tor first
|
# Disable tor first
|
||||||
|
@ -1011,6 +1011,7 @@ def modify_tor_config(settings, coin, tor_control_password=None, enable=False):
|
||||||
if enable:
|
if enable:
|
||||||
if not coin_settings['manage_daemon']:
|
if not coin_settings['manage_daemon']:
|
||||||
fp.write(f'proxy={TOR_PROXY_HOST}:{TOR_PROXY_PORT}\n')
|
fp.write(f'proxy={TOR_PROXY_HOST}:{TOR_PROXY_PORT}\n')
|
||||||
|
fp.write(f'daemon-ssl-allow-any-cert=1\n')
|
||||||
return
|
return
|
||||||
|
|
||||||
config_path = os.path.join(data_dir, coin + '.conf')
|
config_path = os.path.join(data_dir, coin + '.conf')
|
||||||
|
|
Loading…
Reference in a new issue