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

Closed
Masber opened this issue Nov 2, 2023 · 3 comments
Closed

socks5 integration #367

Masber opened this issue Nov 2, 2023 · 3 comments

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?

@durch
Copy link
Owner

durch commented Jun 17, 2024

Duplicate of #387, TLDR yes it will happen eventually, not sure when

@durch durch marked this as a duplicate of #387 Jun 17, 2024
@durch
Copy link
Owner

durch commented Sep 1, 2024

@durch durch closed this as completed Sep 1, 2024
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