From 3bc59ed42f3de0995e6e19c78e882b5c4ec99625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=A4rtens?= Date: Sat, 8 Jun 2024 10:29:15 +0200 Subject: [PATCH] with the new rustls 0.23 update, we had call a Cryptprovider, HostEZ notified us about a client panic when usiong srv Voxygen has paniced: rustls default CryptoProvider not set. srv entries: SRV _veloren_tcp.veloren 0 0 14004 veloren.hostez.io SRV _veloren_udp.veloren 0 0 14004 veloren.hostez.io --- client/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/lib.rs b/client/src/lib.rs index 808e1bae3a..d786b0bce6 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -441,6 +441,7 @@ impl Client { add_foreign_systems: impl Fn(&mut DispatcherBuilder) + Send + 'static, #[cfg_attr(not(feature = "plugins"), allow(unused_variables))] config_dir: PathBuf, ) -> Result { + let _ = rustls::crypto::ring::default_provider().install_default(); // needs to be initialized before usage let network = Network::new(Pid::new(), &runtime); init_stage_update(ClientInitStage::ConnectionEstablish);