We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa66d88 + 9c4399a commit f35a643Copy full SHA for f35a643
iroh/src/magicsock.rs
@@ -2609,9 +2609,13 @@ impl Actor {
2609
// create a client config for the endpoint to use for QUIC address discovery
2610
let root_store =
2611
rustls::RootCertStore::from_iter(webpki_roots::TLS_SERVER_ROOTS.iter().cloned());
2612
- let client_config = rustls::ClientConfig::builder()
2613
- .with_root_certificates(root_store)
2614
- .with_no_client_auth();
+ let client_config = rustls::client::ClientConfig::builder_with_provider(Arc::new(
+ rustls::crypto::ring::default_provider(),
+ ))
2615
+ .with_safe_default_protocol_versions()
2616
+ .expect("ring supports these")
2617
+ .with_root_certificates(root_store)
2618
+ .with_no_client_auth();
2619
let quic_config = Some(QuicConfig {
2620
ep: self.qad_endpoint.clone(),
2621
client_config,
0 commit comments