aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/registry/Cargo.toml1
-rw-r--r--server/registry/src/main.rs3
2 files changed, 4 insertions, 0 deletions
diff --git a/server/registry/Cargo.toml b/server/registry/Cargo.toml
index 2eeebb30..c616174f 100644
--- a/server/registry/Cargo.toml
+++ b/server/registry/Cargo.toml
@@ -15,6 +15,7 @@ serde = { version = "1.0.210", features = ["derive"] }
tokio-tungstenite = { version = "0.23.1", features = [
"rustls-tls-native-roots",
] }
+rustls = { version = "0.23.12", features = ["ring"] }
hurrycurry-protocol = { path = "../protocol" }
hurrycurry-client-lib = { path = "../client-lib" }
diff --git a/server/registry/src/main.rs b/server/registry/src/main.rs
index 2e0b7656..22f1bc0d 100644
--- a/server/registry/src/main.rs
+++ b/server/registry/src/main.rs
@@ -43,6 +43,9 @@ const MAX_SERVERS: usize = 128;
fn main() {
env_logger::init_from_env("LOG");
+ rustls::crypto::ring::default_provider()
+ .install_default()
+ .unwrap();
let address = var("BIND_ADDR")
.map(|a| IpAddr::from_str(&a).unwrap())