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.
1 parent 9b01751 commit a38e3eeCopy full SHA for a38e3ee
1 file changed
iroh-relay/src/main.rs
@@ -496,6 +496,14 @@ async fn main() -> Result<()> {
496
.with(EnvFilter::from_default_env())
497
.init();
498
499
+ // Install `ring` as default crypto provider for rustls.
500
+ // `ring` is enabled by the `tls-ring` feature, which is included in the `server`
501
+ // feature, which is required for the main.rs binary.
502
+ // Therefore, this does not need any feature flags.
503
+ rustls::crypto::ring::default_provider()
504
+ .install_default()
505
+ .expect("failed to set default crypto provider");
506
+
507
let cli = Cli::parse();
508
let mut cfg = Config::load(&cli).await?;
509
if cfg.enable_quic_addr_discovery && cfg.tls.is_none() {
0 commit comments