socks_proxy
socks_proxy copied to clipboard
can't access non ssl (http) api while set socks4/5 proxy
when i set socks4/5 external proxy like 192.111.139.165:4145
SocksProxy.initProxy(
proxy: 'SOCKS5 192.111.139.165:4145',
onCreate: (client) {
client.badCertificateCallback =
(X509Certificate cert, String host, int port) => true;
},
then i cant access http aips and get this error
Unhandled Exception: Connection reset by peer
by setting internal proxy like 127.0.0.1:2081, i get different error
Unhandled Exception: Connection closed before full header was received
it woks fine with https apis and i don't have this problem with http PROXY IP:PORT proxies.