Skip to content

Client With Proxy #67

Description

@doroved

Can you write a client code that will use an external proxy to access blocked and sites and still be able to decrypt traffic?
You can use the standard Basic header as authentication, but in my case the authentication is custom and just uses the x-token: auth_token header.
In the end we will have:

   let proxy_client = create_proxy_client(
        opt.proxy_addr,
        opt.auth_token,
    ).await?
    
    let default_client = DefaultClient::new()?

so that you can send the desired hosts through an external proxy

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