[tor-commits] [oonib/master] only assume HS endpoint when tor_hidden_service: true
art at torproject.org
art at torproject.org
Mon May 30 13:44:55 UTC 2016
commit 35ccea7dbf2b4b3a5d6d72c11f2bde34efd29286
Author: Joe Landers <joe at joelanders.net>
Date: Fri May 13 09:33:24 2016 +0200
only assume HS endpoint when tor_hidden_service: true
---
oonib/oonibackend.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/oonib/oonibackend.py b/oonib/oonibackend.py
index 3802566..eaf235f 100644
--- a/oonib/oonibackend.py
+++ b/oonib/oonibackend.py
@@ -157,10 +157,10 @@ if config.main.tor_hidden_service:
configTor(torconfig)
# this is to ensure same behaviour with an old config file
-if config.main.bouncer_endpoints is None:
+if config.main.bouncer_endpoints is None and config.main.tor_hidden_service:
config.main.bouncer_endpoints = [ {'type': 'onion', 'hsdir': 'bouncer'} ]
-if config.main.collector_endpoints is None:
+if config.main.collector_endpoints is None and config.main.tor_hidden_service:
config.main.collector_endpoints = [ {'type': 'onion', 'hsdir': 'collector'} ]
for endpoint_config in config.main.bouncer_endpoints:
More information about the tor-commits
mailing list