Skip to content

Commit b8807c3

Browse files
committed
update dependencies
1 parent c913e6c commit b8807c3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "socks5-impl"
3-
version = "0.5.2"
3+
version = "0.5.3"
44
authors = ["ssrlive <ssrlivebox@gmail.com>"]
55
description = "Fundamental abstractions and async read / write functions for SOCKS5 protocol and Relatively low-level asynchronized SOCKS5 server implementation based on tokio"
66
categories = ["network-programming", "asynchronous"]
@@ -20,7 +20,7 @@ async-trait = "0.1"
2020
byteorder = "1.4"
2121
bytes = "1.4"
2222
thiserror = "1.0"
23-
tokio = { version = "1.29", features = ["full"], optional = true }
23+
tokio = { version = "1.32", features = ["full"], optional = true }
2424

2525
[dev-dependencies]
2626
clap = { version = "4.3", features = ["derive"] }
@@ -29,8 +29,8 @@ env_logger = "0.10"
2929
log = "0.4"
3030
moka = { version = "0.11", features = ["future"] }
3131
rand = "0.8"
32-
tokio = { version = "1.29", features = ["macros", "rt-multi-thread"] }
33-
trust-dns-proto = "0.22"
32+
tokio = { version = "1.32", features = ["macros", "rt-multi-thread"] }
33+
trust-dns-proto = "0.23"
3434

3535
[[example]]
3636
name = "demo-client"

examples/dns.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ pub fn extract_ipaddr_from_dns_message(message: &Message) -> Result<IpAddr, Stri
3434
for answer in message.answers() {
3535
match answer.data().ok_or("DNS response not contains answer data")? {
3636
RData::A(addr) => {
37-
return Ok(IpAddr::V4(*addr));
37+
return Ok(IpAddr::V4((*addr).into()));
3838
}
3939
RData::AAAA(addr) => {
40-
return Ok(IpAddr::V6(*addr));
40+
return Ok(IpAddr::V6((*addr).into()));
4141
}
4242
RData::CNAME(name) => {
4343
cname = Some(name.to_utf8());

0 commit comments

Comments
 (0)