whoops, fix HTTPConnect proxies

This commit is contained in:
Keijia authored and Martin Algesten committed 2021-08-23 20:46:44 +02:00
1 parent 37e19b34ec
commit 12b49e59f4
1 file changed
+2 -1
+2 -1
View File
@@ -411,7 +411,8 @@ pub(crate) fn connect_host(unit: &Unit, hostname: &str, port: u16) -> Result<Tcp
debug!("connecting to {} at {}", netloc, &sock_addr); debug!("connecting to {} at {}", netloc, &sock_addr);
// connect with a configured timeout. // connect with a configured timeout.
let stream = if let Some(proto_r) = proto { let stream = if Some(Proto::HTTPConnect) != proto {
let Some(proto_r) = proto;
connect_socks( connect_socks(
unit, unit,
proxy.clone().unwrap(), proxy.clone().unwrap(),