Don't use trackers proxy in tor always mode
This commit is contained in:
parent
8a7ae368d8
commit
ab9fe173a8
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ class Connection(object):
|
|||
self.sock = self.server.tor_manager.createSocket(self.ip, self.port)
|
||||
elif config.tor == "always" and helper.isPrivateIp(self.ip) and self.ip not in config.ip_local:
|
||||
raise Exception("Can't connect to local IPs in Tor: always mode")
|
||||
elif config.trackers_proxy != "disable" and self.is_tracker_connection:
|
||||
elif config.trackers_proxy != "disable" and config.tor != "always" and self.is_tracker_connection:
|
||||
if config.trackers_proxy == "tor":
|
||||
self.sock = self.server.tor_manager.createSocket(self.ip, self.port)
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue