A SOCKS5 connector for hyper library
Example
# use std::error::Error;
# fn hidden() -> Result<(), Box<dyn Error>> {
use hyper::{client::Client, Body};
use hyper_socks2::SocksConnector;
let proxy = SocksConnector {
proxy_addr: "your.socks5.proxy:1080",
auth: None,
};
// with TLS support
let proxy = proxy.with_tls()?;
let client = Client::builder().build::<_, Body>(proxy);
# Ok(())
# }
Features
tlsfeature is enabled by default. It adds TLS support usinghyper-tls.