Fix wrong feature name when setting certs

pull/217/head
Dominik Nakamura 3 years ago
parent 02fb5db98f
commit 8b029baa8d
No known key found for this signature in database
GPG Key ID: E4C6A749B2491910
  1. 4
      src/client.rs

@ -76,12 +76,12 @@ mod encryption {
let config = {
#[allow(unused_mut)]
let mut config = ClientConfig::new();
#[cfg(feature = "rustls-native-roots")]
#[cfg(feature = "rustls-tls-native-roots")]
{
config.root_store =
rustls_native_certs::load_native_certs().map_err(|(_, err)| err)?;
}
#[cfg(feature = "rustls-webpki-roots")]
#[cfg(feature = "rustls-tls-webpki-roots")]
{
config.root_store.add_server_trust_anchors(&webpki_roots::TLS_SERVER_ROOTS);
}

Loading…
Cancel
Save