Crates.io | actix-socks |
lib.rs | actix-socks |
version | 0.1.0 |
source | src |
created_at | 2020-05-13 22:38:05.793578 |
updated_at | 2020-05-13 22:38:05.793578 |
description | A connector for actix-client that adds support for SOCKSv5 proxies. |
homepage | |
repository | https://github.com/DR-BoneZ/actix-socks |
max_upload_size | |
id | 241294 |
size | 5,794 |
SOCKSv5 support for actix-client.
Add this to your Cargo.toml
:
[dependencies]
actix-socks = "0.1.0"
let client = actix_web::client::ClientBuilder::new()
.connector(
actix_web::client::Connector::new()
.connector(actix_socks::SocksConnector("127.0.0.1:9050"))
.timeout(std::time::Duration::from_secs(60))
.finish(),
)
.finish();
let res = client
.get("http://facebookcorewwwi.onion")
.send()
.await
.unwrap();
println!("{:?}", res);