Skip to content

Commit

Permalink
Bump version 0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Dec 31, 2023
1 parent 24fea3b commit b306eff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "overtls"
version = "0.2.7"
version = "0.2.8"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion src/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pub(crate) fn extract_ipaddr_from_dns_message(message: &Message) -> std::io::Res

pub(crate) fn extract_domain_from_dns_message(message: &Message) -> std::io::Result<String> {
let err = std::io::Error::new(std::io::ErrorKind::Other, "DNS request not contains query body");
let query = message.queries().get(0).ok_or(err)?;
let query = message.queries().first().ok_or(err)?;
let name = query.name().to_string();
Ok(name)
}
Expand Down
2 changes: 1 addition & 1 deletion src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub async fn run_server(config: &Config, exiting_flag: Option<Arc<AtomicBool>>)
});

let svr_cfg = if let (Some(certs), Some(mut keys)) = (certs, keys) {
let _key = keys.get(0).ok_or("no keys")?;
let _key = keys.first().ok_or("no keys")?;
rustls::ServerConfig::builder()
.with_no_client_auth()
.with_single_cert(certs, keys.remove(0))
Expand Down

0 comments on commit b306eff

Please sign in to comment.