Fix tracker proxy PySocks import
This commit is contained in:
parent
2bdd073608
commit
d93e89899b
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Connection(object):
|
|||
if config.trackers_proxy == "tor":
|
||||
self.sock = self.server.tor_manager.createSocket(self.ip, self.port)
|
||||
else:
|
||||
from lib.PySocks import socks
|
||||
import socks
|
||||
self.sock = socks.socksocket()
|
||||
proxy_ip, proxy_port = config.trackers_proxy.split(":")
|
||||
self.sock.set_proxy(socks.PROXY_TYPE_SOCKS5, proxy_ip, int(proxy_port))
|
||||
|
|
Loading…
Reference in a new issue