aboutsummaryrefslogtreecommitdiff
path: root/server/bot
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-08-11 17:57:36 +0200
committermetamuffin <metamuffin@disroot.org>2024-08-11 17:57:36 +0200
commitf9c46455c19c92aaa6238215810cce6ad2a6f78d (patch)
tree6158ed907983e083f784c489cf030e9febdd0db5 /server/bot
parente57d8fc4f05222505bd4320d75245a2002102f08 (diff)
downloadhurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar
hurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar.bz2
hurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar.zst
initialize crypto in bot
Diffstat (limited to 'server/bot')
-rw-r--r--server/bot/Cargo.toml1
-rw-r--r--server/bot/src/main.rs4
2 files changed, 5 insertions, 0 deletions
diff --git a/server/bot/Cargo.toml b/server/bot/Cargo.toml
index bd8cbe36..e00855cd 100644
--- a/server/bot/Cargo.toml
+++ b/server/bot/Cargo.toml
@@ -9,3 +9,4 @@ hurrycurry-protocol = { path = "../protocol" }
log = "0.4.22"
anyhow = "1.0.86"
env_logger = "0.11.5"
+rustls = { version = "0.23.12", features = ["ring"] }
diff --git a/server/bot/src/main.rs b/server/bot/src/main.rs
index c07bfa92..ca5f8c92 100644
--- a/server/bot/src/main.rs
+++ b/server/bot/src/main.rs
@@ -39,6 +39,10 @@ pub trait BotAlgo {
fn main() -> Result<()> {
env_logger::init_from_env("LOG");
+ rustls::crypto::ring::default_provider()
+ .install_default()
+ .unwrap();
+
let mut network = Network::connect(
&std::env::args()
.nth(1)