change hyper-socks2-mw to versioned crate (#425)

This commit is contained in:
Yeastplume
2020-06-03 14:31:19 +01:00
committed by GitHub
parent 60ab3728ab
commit 3edd410e19
3 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -33,8 +33,7 @@ hyper-timeout = "0.3"
#Socks/Tor
byteorder = "1"
hyper = "0.13"
#hyper-socks2 = "0.4"
hyper-socks2 = { git = "https://github.com/yeastplume/hyper-socks2", branch = "master" }
hyper-socks2-mw = "0.4"
ed25519-dalek = "1.0.0-pre.1"
x25519-dalek = "0.6"
data-encoding = "2"
+1 -1
View File
@@ -292,7 +292,7 @@ impl Client {
let auth = format!("{}:{}", addr.ip(), addr.port());
let https = hyper_rustls::HttpsConnector::new();
let socks = hyper_socks2::SocksConnector {
let socks = hyper_socks2_mw::SocksConnector {
proxy_addr: hyper::Uri::builder()
.scheme("socks5")
.authority(auth.as_str())