From d38c655e79d53e4699dd43e42529aaed00ecb269 Mon Sep 17 00:00:00 2001 From: Siavash Sameni Date: Fri, 27 Mar 2026 19:55:56 +0400 Subject: [PATCH] fix: install rustls crypto provider in relay (same as wzp-web fix) Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/wzp-relay/Cargo.toml | 1 + crates/wzp-relay/src/main.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/crates/wzp-relay/Cargo.toml b/crates/wzp-relay/Cargo.toml index c4896cc..6dad640 100644 --- a/crates/wzp-relay/Cargo.toml +++ b/crates/wzp-relay/Cargo.toml @@ -20,6 +20,7 @@ bytes = { workspace = true } serde = { workspace = true } toml = "0.8" anyhow = "1" +rustls = { version = "0.23", default-features = false, features = ["ring", "std"] } [[bin]] name = "wzp-relay" diff --git a/crates/wzp-relay/src/main.rs b/crates/wzp-relay/src/main.rs index f50db81..23e043d 100644 --- a/crates/wzp-relay/src/main.rs +++ b/crates/wzp-relay/src/main.rs @@ -200,6 +200,9 @@ struct WaitingClient { async fn main() -> anyhow::Result<()> { let config = parse_args(); tracing_subscriber::fmt().init(); + rustls::crypto::ring::default_provider() + .install_default() + .expect("failed to install rustls crypto provider"); info!(addr = %config.listen_addr, "WarzonePhone relay starting"); if let Some(remote) = config.remote_relay {