Skip to content

Commit

Permalink
fix a miss
Browse files Browse the repository at this point in the history
  • Loading branch information
zephyrchien committed Apr 18, 2022
1 parent c76dff0 commit 55bcb22
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion kaminari/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "kaminari"
version = "0.5.6"
version = "0.5.7"
edition = "2021"
authors = ["zephyr <[email protected]>"]
keywords = ["lightws", "network"]
Expand Down
2 changes: 1 addition & 1 deletion kaminari/src/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ impl<T> TlsAccept<T> {
None
};

let cert_resolver = if crt.is_empty() && key.is_empty() {
let cert_resolver = if !crt.is_empty() && !key.is_empty() {
utils::new_crt_key_resolver(crt, key, ocsp, None)
} else if !server_name.is_empty() {
utils::new_self_signed_resolver(server_name)
Expand Down

0 comments on commit 55bcb22

Please sign in to comment.