Skip to content

Commit f35a643

Browse files
Merge 9c4399a into fa66d88
2 parents fa66d88 + 9c4399a commit f35a643

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

iroh/src/magicsock.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2609,9 +2609,13 @@ impl Actor {
26092609
// create a client config for the endpoint to use for QUIC address discovery
26102610
let root_store =
26112611
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();
2612+
let client_config = rustls::client::ClientConfig::builder_with_provider(Arc::new(
2613+
rustls::crypto::ring::default_provider(),
2614+
))
2615+
.with_safe_default_protocol_versions()
2616+
.expect("ring supports these")
2617+
.with_root_certificates(root_store)
2618+
.with_no_client_auth();
26152619
let quic_config = Some(QuicConfig {
26162620
ep: self.qad_endpoint.clone(),
26172621
client_config,

0 commit comments

Comments
 (0)