Enable accept_invalid_hostnames for rustls (#988)

With #977 dangerous_accept_invalid_hostnames is implemented for rustls. This add the config flag so that the feature can actually be used when rustls-tls is enabled.
This commit is contained in:
Max Breitenfeldt
2024-09-10 09:58:48 +02:00
committed by GitHub
parent e8b2498ad7
commit 1c6a348eb8

View File

@@ -197,7 +197,7 @@ impl TlsParametersBuilder {
/// including those from other sites, are trusted.
///
/// This method introduces significant vulnerabilities to man-in-the-middle attacks.
#[cfg(any(feature = "native-tls", feature = "boring-tls"))]
#[cfg(any(feature = "native-tls", feature = "rustls-tls", feature = "boring-tls"))]
#[cfg_attr(
docsrs,
doc(cfg(any(feature = "native-tls", feature = "rustls-tls", feature = "boring-tls")))