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

socks5 integration #367

Open
Masber opened this issue Nov 2, 2023 · 1 comment
Open

socks5 integration #367

Masber opened this issue Nov 2, 2023 · 1 comment
Assignees

Comments

@Masber
Copy link

Masber commented Nov 2, 2023

Is your feature request related to a problem? Please describe.
I would like to be able to customize the http client with socks5 configuration.

Describe the solution you'd like
I would like to be able to do something like:

    let socks_http_connector = SocksConnector {
        proxy_addr: std::env::var("SOCKS5").unwrap().parse::<Uri>().unwrap(), // scheme is required by HttpConnector
        auth: None,
        connector: http_connector.clone(),
    };

And then inject this http_connector to the http client used by this library (I assume is reqwest)

Describe alternatives you've considered
An alternative (and better solution) would be to add a function to enable socks5 by specifying the socks5 proxy url, credentials, etc.

Additional context
For now, I would be happy if someone just tells me how I could inject my hyper client (with socks5 and rustls) into this library

@Masber
Copy link
Author

Masber commented Nov 6, 2023

Hi, any help on this?

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

No branches or pull requests

2 participants