durch/rust-s3

socks5 integration

Closed this issue · 3 comments

Masber commented

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 commented

Hi, any help on this?

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