From 3cf2a68ced32c8a91699906994a891c5caf4a32c Mon Sep 17 00:00:00 2001 From: Igor Novgorodov Date: Mon, 11 May 2026 19:36:39 +0200 Subject: [PATCH] Fix Rustls initialization --- src/core.rs | 2 ++ src/main.rs | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.rs b/src/core.rs index e91a3f2..4c59051 100644 --- a/src/core.rs +++ b/src/core.rs @@ -44,6 +44,8 @@ pub async fn main( cli: &Cli, log_handle: Handle, ) -> Result<(), Error> { + let _ = ic_bn_lib::rustls::crypto::ring::default_provider().install_default(); + ENV.set(cli.misc.env.clone()).unwrap(); HOSTNAME.set(cli.misc.hostname.clone()).unwrap(); diff --git a/src/main.rs b/src/main.rs index ffa5beb..b948aa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,8 +68,6 @@ mod test { #[tokio::test] async fn test_load_balancer() { - let _ = ic_bn_lib::rustls::crypto::ring::default_provider().install_default(); - // Set up stub backend on a random port let opts = ServerOptions::default(); let listener = TcpListener::bind("127.0.0.1:0").await.unwrap();