Skip to content

Commit d45bc4f

Browse files
committed
Reinstate ConnectProxyConnector
1 parent 76d07b7 commit d45bc4f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/proxy.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ impl Proxy {
186186
///
187187
/// This operates on the previous chained transport typically a TcpConnector optionally
188188
/// wrapped in TLS.
189-
pub struct ConnectProxyConnector;
189+
#[derive(Default)]
190+
pub struct ConnectProxyConnector(());
190191

191192
impl<In: Transport> Connector<In> for ConnectProxyConnector {
192193
type Out = In;

src/unversioned/transport/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ impl Default for DefaultConnector {
349349
crate::tls::TlsProvider::NativeTls,
350350
));
351351

352+
let inner = inner.chain(ConnectProxyConnector::default());
353+
352354
DefaultConnector {
353355
inner: boxed_connector(inner),
354356
}

0 commit comments

Comments
 (0)