Fix disabled tor startup

This commit is contained in:
shortcutme 2018-07-10 03:31:39 +02:00
parent 10bab2b6e4
commit b87ad9cd2f
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 1 deletions

View file

@ -64,7 +64,7 @@ class ConnectionServer(object):
if check_connections:
self.thread_checker = gevent.spawn(self.checkConnections)
CryptConnection.manager.loadCerts()
if config.tor != "disabled":
if config.tor != "disable":
self.tor_manager.start()
if not self.port:
self.log.info("No port found, not binding")
@ -89,6 +89,7 @@ class ConnectionServer(object):
self.log.info("StreamServer listen error: %s" % err)
def stop(self):
self.log.debug("Stopping")
self.running = False
if self.stream_server:
self.stream_server.stop()

View file

@ -59,6 +59,7 @@ class TorManager(object):
self.proxy_port = int(self.proxy_port)
def start(self):
self.log.debug("Starting (Tor: %s)" % config.tor)
self.starting = True
try:
if not self.connect():