fix: install rustls crypto provider in relay (same as wzp-web fix)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-03-27 19:55:56 +04:00
parent ce6aacb25f
commit d38c655e79
2 changed files with 4 additions and 0 deletions

View File

@@ -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"

View File

@@ -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 {