Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't access non ssl (http) api while set socks4/5 proxy #2

Open
EmperorofWeb opened this issue May 27, 2022 · 0 comments
Open

can't access non ssl (http) api while set socks4/5 proxy #2

EmperorofWeb opened this issue May 27, 2022 · 0 comments

Comments

@EmperorofWeb
Copy link

EmperorofWeb commented May 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant