Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Feb 4, 2024
1 parent 9fa205d commit 09b41a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "socks5-impl"
version = "0.5.8"
version = "0.5.9"
authors = ["ssrlive <[email protected]>"]
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
categories = ["network-programming", "asynchronous"]
Expand All @@ -21,17 +21,17 @@ byteorder = "1.5"
bytes = "1.5"
serde = { version = "1.0", features = ["derive"] }
thiserror = "1.0"
tokio = { version = "1.35", features = ["full"], optional = true }
tokio = { version = "1.36", features = ["full"], optional = true }

[dev-dependencies]
clap = { version = "4.4", features = ["derive"] }
ctrlc2 = { version = "3.5", features = ["tokio", "termination"] }
dotenvy = "0.15"
env_logger = "0.10"
env_logger = "0.11"
log = "0.4"
moka = { version = "0.12", features = ["future"] }
rand = "0.8"
tokio = { version = "1.35", features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.36", features = ["macros", "rt-multi-thread"] }
trust-dns-proto = "0.23"

[[example]]
Expand Down
2 changes: 1 addition & 1 deletion examples/util/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn extract_ipaddr_from_dns_message(message: &Message) -> Result<IpAddr, Stri
}

pub fn extract_domain_from_dns_message(message: &Message) -> Result<String, String> {
let query = message.queries().get(0).ok_or("DnsRequest no query body")?;
let query = message.queries().first().ok_or("DnsRequest no query body")?;
let name = query.name().to_string();
Ok(name)
}
Expand Down

0 comments on commit 09b41a3

Please sign in to comment.