don't netcheck if tor disabled
This commit is contained in:
parent
5dddeb3f10
commit
8a4c138eed
2 changed files with 8 additions and 5 deletions
|
@ -149,10 +149,12 @@ class OnionrCommunicatorDaemon:
|
|||
180, my_args=[self], requires_peer=True, max_threads=1)
|
||||
deniableBlockTimer.count = (deniableBlockTimer.frequency - 175)
|
||||
|
||||
# Timer to check for connectivity,
|
||||
# through Tor to various high-profile onion services
|
||||
OnionrCommunicatorTimers(self, netcheck.net_check, 500,
|
||||
my_args=[self], max_threads=1)
|
||||
if config.get('transports.tor', True):
|
||||
# Timer to check for connectivity,
|
||||
# through Tor to various high-profile onion services
|
||||
OnionrCommunicatorTimers(
|
||||
self, netcheck.net_check, 500,
|
||||
my_args=[self], max_threads=1)
|
||||
|
||||
# Announce the public API server transport address
|
||||
# to other nodes if security level allows
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue