diff --git a/src/Connection/Connection.py b/src/Connection/Connection.py index 8122ec08..78de2ea4 100644 --- a/src/Connection/Connection.py +++ b/src/Connection/Connection.py @@ -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))