From 3edd410e19daf76d727622844cc12542c6164ced Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Wed, 3 Jun 2020 14:31:19 +0100 Subject: [PATCH] change hyper-socks2-mw to versioned crate (#425) --- Cargo.lock | 9 +++++---- impls/Cargo.toml | 3 +-- impls/src/client_utils/client.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 50b886e59..6d7d0dbe0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1487,7 +1487,7 @@ dependencies = [ "http 0.1.21", "hyper", "hyper-rustls 0.19.1", - "hyper-socks2", + "hyper-socks2-mw", "hyper-timeout", "log", "rand 0.5.6", @@ -1728,9 +1728,10 @@ dependencies = [ ] [[package]] -name = "hyper-socks2" -version = "0.4.3" -source = "git+https://github.com/yeastplume/hyper-socks2#08c3e5f6e8fb642110abe61e8a381195ac60cb6c" +name = "hyper-socks2-mw" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7267805b50714db2ebe2904b1e70158ba6ba8eafdaf7c9d7735aca3273c4f8" dependencies = [ "async-socks5", "futures 0.3.5", diff --git a/impls/Cargo.toml b/impls/Cargo.toml index 75f34be8a..724588613 100644 --- a/impls/Cargo.toml +++ b/impls/Cargo.toml @@ -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" diff --git a/impls/src/client_utils/client.rs b/impls/src/client_utils/client.rs index 31a57e822..76947c263 100644 --- a/impls/src/client_utils/client.rs +++ b/impls/src/client_utils/client.rs @@ -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())