Skip to content

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

Description

@hosseinipour

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions