Skip to content

Commit

Permalink
Reinstate ConnectProxyConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
algesten committed Jan 5, 2025
1 parent 76d07b7 commit d45bc4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ impl Proxy {
///
/// This operates on the previous chained transport typically a TcpConnector optionally
/// wrapped in TLS.
pub struct ConnectProxyConnector;
#[derive(Default)]
pub struct ConnectProxyConnector(());

impl<In: Transport> Connector<In> for ConnectProxyConnector {
type Out = In;
Expand Down
2 changes: 2 additions & 0 deletions src/unversioned/transport/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ impl Default for DefaultConnector {
crate::tls::TlsProvider::NativeTls,
));

let inner = inner.chain(ConnectProxyConnector::default());

DefaultConnector {
inner: boxed_connector(inner),
}
Expand Down

0 comments on commit d45bc4f

Please sign in to comment.