diff --git a/Content.py b/Content.py index 827b263..42f5ffb 100644 --- a/Content.py +++ b/Content.py @@ -25,7 +25,7 @@ if proxy == 1: socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") import socket from resources import socks - socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) + socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, socks_ip, 9050) socket.socket = socks.socksocket import urllib import urllib2 diff --git a/SearcherABC.py b/SearcherABC.py index d3a9a8f..fbf95bf 100644 --- a/SearcherABC.py +++ b/SearcherABC.py @@ -31,7 +31,7 @@ proxy = int(sys.modules["__main__"].__settings__.getSetting("proxy")) if proxy == 2: socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") from resources import socks - socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, "127.0.0.1", 9050) + socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, socks_ip, 9050) socket.socket = socks.socksocket import urllib import urllib2