1
0

network: fix issue starting tor probe when proxy disabled

This commit is contained in:
Sander van Grieken
2023-12-12 13:27:42 +01:00
parent a6ceeec09d
commit 831be3b680

View File

@@ -645,7 +645,7 @@ class Network(Logger, NetworkRetryManager[ServerAddr]):
self.logger.info(f'Proxy is {"" if tor_proxy else "not "}TOR')
self._tor_probe_done(tor_proxy)
if proxy['mode'] == 'socks5':
if proxy and proxy['mode'] == 'socks5':
t = threading.Thread(target=tor_probe_task, args=(proxy,), daemon=True)
t.start()