pull/16/merge
inpos 2017-12-11 22:28:04 +03:00
parent 82d14d2731
commit e2a11b5cad
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ if proxy == 1:
socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip")
import socket import socket
from resources import socks 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 socket.socket = socks.socksocket
import urllib import urllib
import urllib2 import urllib2

View File

@ -31,7 +31,7 @@ proxy = int(sys.modules["__main__"].__settings__.getSetting("proxy"))
if proxy == 2: if proxy == 2:
socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip") socks_ip = sys.modules["__main__"].__settings__.getSetting("socks_ip")
from resources import socks 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 socket.socket = socks.socksocket
import urllib import urllib
import urllib2 import urllib2