bugfix
This commit is contained in:
parent
944c4825a1
commit
95c01eabf4
12
appPublic/proxy.py
Normal file
12
appPublic/proxy.py
Normal file
@ -0,0 +1,12 @@
|
||||
import socket
|
||||
import socks
|
||||
import requests
|
||||
|
||||
original_socket = socket.socket
|
||||
|
||||
def set_socks_proxy(host, port):
|
||||
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, host, port)
|
||||
socket.socket = socks.socksocket
|
||||
|
||||
def unset_proxy():
|
||||
socket.socket = original_socket
|
@ -1 +1 @@
|
||||
__version__ = '5.1.18'
|
||||
__version__ = '5.1.19'
|
||||
|
Loading…
Reference in New Issue
Block a user