Always create TorManager object with ConnectionServer, move tormanager start to sperate function
This commit is contained in:
parent
7fee135bf5
commit
8828f21f2e
2 changed files with 19 additions and 20 deletions
|
@ -27,10 +27,9 @@ class ConnectionServer(object):
|
|||
self.port_opened = None
|
||||
self.peer_blacklist = SiteManager.peer_blacklist
|
||||
|
||||
self.tor_manager = TorManager(self.ip, self.port)
|
||||
if config.tor != "disabled":
|
||||
self.tor_manager = TorManager(self.ip, self.port)
|
||||
else:
|
||||
self.tor_manager = None
|
||||
self.tor_manager.start()
|
||||
|
||||
self.connections = [] # Connections
|
||||
self.whitelist = config.ip_local # No flood protection on this ips
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue