socks_ip
parent
82d14d2731
commit
e2a11b5cad
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue