#1440 fix TOR detect

This commit is contained in:
rootzoll 2020-08-13 15:42:31 +02:00
parent 6d479dd0b3
commit b6ec6a805a

View File

@ -47,7 +47,7 @@ cfg.reload()
# todo: make sure that also ACME script uses TOR if activated
session = requests.session()
if cfg.run_behind_tor:
if cfg.run_behind_tor.value:
session.proxies = {'http': 'socks5h://127.0.0.1:9050', 'https': 'socks5h://127.0.0.1:9050'}