diff options
author | metamuffin <metamuffin@disroot.org> | 2024-08-11 17:57:36 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-08-11 17:57:36 +0200 |
commit | f9c46455c19c92aaa6238215810cce6ad2a6f78d (patch) | |
tree | 6158ed907983e083f784c489cf030e9febdd0db5 /server | |
parent | e57d8fc4f05222505bd4320d75245a2002102f08 (diff) | |
download | hurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar hurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar.bz2 hurrycurry-f9c46455c19c92aaa6238215810cce6ad2a6f78d.tar.zst |
initialize crypto in bot
Diffstat (limited to 'server')
-rw-r--r-- | server/bot/Cargo.toml | 1 | ||||
-rw-r--r-- | server/bot/src/main.rs | 4 |
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) |