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
This commit is contained in:
Marcel Märtens 2024-06-08 10:29:15 +02:00
parent bc4c7dcd5d
commit 3bc59ed42f

View File

@ -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<Self, Error> {
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);