diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..33d3eb5 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default.extend-words] +GOST = "GOST" diff --git a/server/Cargo.toml b/server/Cargo.toml index ee92245..271bd96 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -35,7 +35,7 @@ uuid = { version = "1.8.0", features = ["v4"] } tonic-build = "0.11" [features] -# default = ["streebog"] +default = ["streebog"] streebog = ["dep:streebog", "dep:hex"] # `cargo-machete` reports this as unused, but it's absolutely used by `tonic` :) diff --git a/server/src/lib.rs b/server/src/lib.rs index efcfc35..33684a0 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -55,7 +55,7 @@ impl TCPChat { tracing::info!(message = "Starting server", ?addr); Server::builder() .tls_config(ServerTlsConfig::new().identity(identity)) - .unwrap() + .expect("The TLS key or certificate is invalid!") .trace_fn(|_| tracing::info_span!("server")) .add_service(registry) .add_service(chat)