Open ZhangGang12 opened 3 years ago
I'm not an expert on python but I found a work around. you need to install PySocks
Then add the following code to your python script, assuming your proxy is localhost and port is 8888
import socket
import socks
socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 8888)
socket.socket = socks.socksocket
Moreover, you will need to disable system proxy in v2rayN
I'm not an expert on python but I found a work around. you need to install PySocks
Then add the following code to your python script, assuming your proxy is localhost and port is 8888
import socket import socks socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5, '127.0.0.1', 8888) socket.socket = socks.socksocket
Moreover, you will need to disable system proxy in v2rayN
Thank you very much! According to your method, the problem is resolved !!
Describe the bug I can't connect client, but I use the v2rayN proxy client on my PC. When I try to visit https://api.binance.com/api/v3/ping through my browser, It shows ‘{}’. But I try to run the following code, It prints "not existed". So what should I do?
To Reproduce
Expected behavior I w
Environment (please complete the following information):
Logs or Additional context I was on China's mainland,Thanks for your response!