Skip to content

Commit 6801e56

Browse files
authored
Update hickory-resolver to 0.26 (#647)
1 parent c25225a commit 6801e56

3 files changed

Lines changed: 94 additions & 6 deletions

File tree

Cargo.lock

Lines changed: 88 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ tonic = { version = "0.14", optional = true, features = [
102102
"tls-webpki-roots",
103103
] }
104104
tracing = "0.1"
105-
hickory-resolver = "0.25.2"
105+
hickory-resolver = "0.26"
106106
url = "2.5"
107107
uuid = { version = "1.18", optional = true }
108108
rust_decimal = { version = "1.38", features = ["db-postgres"], optional = true }

core/src/util/ns_lookup.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ pub async fn verify_ns_lookup_and_tcp_connect(host: &str, port: u16) -> Result<(
6767
host: host.to_string(),
6868
port,
6969
})?
70-
.build();
70+
.build()
71+
.map_err(|_| Error::UnableToConnect {
72+
host: host.to_string(),
73+
port,
74+
})?;
7175
match resolver.lookup_ip(host).await {
7276
Ok(ips) => {
7377
for ip in ips.iter() {

0 commit comments

Comments
 (0)