mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-05 18:38:09 +01:00
fix for remote monero daemons on tor enabled installs
This commit is contained in:
@@ -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')
|
||||||
|
|||||||
Reference in New Issue
Block a user