durch / rust-s3

Rust library for interfacing with S3 API compatible services
MIT License
495 stars 195 forks source link

socks5 integration #367

Open Masber opened 7 months ago

Masber commented 7 months ago

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 7 months ago

Hi, any help on this?

durch commented 1 day ago

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