fixed #1234 - rustls panic in tokio-tungstenite

This commit is contained in:
Eugene 2025-02-04 18:37:04 +01:00
parent fab05a2c67
commit 2abe104324
No known key found for this signature in database
GPG key ID: 5896FCBBDD1CF4F4
3 changed files with 7 additions and 0 deletions

1
Cargo.lock generated
View file

@ -5527,6 +5527,7 @@ dependencies = [
"futures",
"notify",
"rcgen",
"rustls 0.23.12",
"sd-notify",
"sea-orm",
"serde_json",

View file

@ -20,6 +20,7 @@ enum_dispatch.workspace = true
futures.workspace = true
notify = "5.1"
rcgen = { version = "0.10", features = ["zeroize"] }
rustls.workspace = true
serde_json.workspace = true
serde_yaml = "0.9"
sea-orm = { version = "0.12.2", default-features = false }

View file

@ -94,6 +94,11 @@ async fn _main() -> Result<()> {
init_logging(load_config(&cli.config, false).ok().as_ref(), &cli).await;
#[allow(clippy::unwrap_used)]
rustls::crypto::aws_lc_rs::default_provider()
.install_default()
.unwrap();
match &cli.command {
Commands::Run { enable_admin_token } => {
crate::commands::run::command(&cli, *enable_admin_token).await