Skip to content

Commit

Permalink
chore: prioritize rustls-backend while it is not supported (non-default)
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Dec 8, 2023
1 parent f714282 commit 6030beb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rpxy-lib/src/forwarder/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Please enable native-tls-backend or rustls-backend feature to enable TLS support
}
}

#[cfg(feature = "native-tls-backend")]
#[cfg(all(feature = "native-tls-backend", not(feature = "rustls-backend")))]
/// Build forwarder with hyper-tls (native-tls)
impl<B1> Forwarder<hyper_tls::HttpsConnector<HttpConnector>, B1>
where
Expand Down
3 changes: 3 additions & 0 deletions rpxy-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ where
#[cfg(all(feature = "http3-quinn", feature = "http3-s2n"))]
warn!("Both \"http3-quinn\" and \"http3-s2n\" features are enabled. \"http3-quinn\" will be used");

#[cfg(all(feature = "native-tls-backend", feature = "rustls-backend"))]
warn!("Both \"native-tls-backend\" and \"rustls-backend\" features are enabled. \"rustls-backend\" will be used");

// For initial message logging
if proxy_config.listen_sockets.iter().any(|addr| addr.is_ipv6()) {
info!("Listen both IPv4 and IPv6")
Expand Down

0 comments on commit 6030beb

Please sign in to comment.