diff --git a/src/connect.rs b/src/connect.rs index ac0e07ffd..ff76c57f8 100644 --- a/src/connect.rs +++ b/src/connect.rs @@ -236,12 +236,12 @@ impl Connector { } } #[cfg(feature = "__rustls")] - Inner::RustlsTls { tls_proxy, .. } => { + Inner::RustlsTls { tls, .. } => { if dst.scheme() == Some(&Scheme::HTTPS) { use std::convert::TryFrom; use tokio_rustls::TlsConnector as RustlsConnector; - let tls = tls_proxy.clone(); + let tls = tls.clone(); let host = dst.host().ok_or("no host in url")?.to_string(); let conn = socks::connect(proxy, dst, dns).await?; let conn = TokioIo::new(conn);