Skip to content

Commit ab9fe17

Browse files
committed
Don't use trackers proxy in tor always mode
1 parent 8a7ae36 commit ab9fe17

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Connection/Connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def connect(self):
125125
self.sock = self.server.tor_manager.createSocket(self.ip, self.port)
126126
elif config.tor == "always" and helper.isPrivateIp(self.ip) and self.ip not in config.ip_local:
127127
raise Exception("Can't connect to local IPs in Tor: always mode")
128-
elif config.trackers_proxy != "disable" and self.is_tracker_connection:
128+
elif config.trackers_proxy != "disable" and config.tor != "always" and self.is_tracker_connection:
129129
if config.trackers_proxy == "tor":
130130
self.sock = self.server.tor_manager.createSocket(self.ip, self.port)
131131
else:

0 commit comments

Comments
 (0)