mirror of
https://github.com/warp-tech/warpgate.git
synced 2025-09-28 01:14:55 +08:00
fixed #1234 - rustls panic in tokio-tungstenite
This commit is contained in:
parent
fab05a2c67
commit
2abe104324
3 changed files with 7 additions and 0 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -5527,6 +5527,7 @@ dependencies = [
|
|||
"futures",
|
||||
"notify",
|
||||
"rcgen",
|
||||
"rustls 0.23.12",
|
||||
"sd-notify",
|
||||
"sea-orm",
|
||||
"serde_json",
|
||||
|
|
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue