From 8b83d465603eea4d3183ec164276d1fb597e1a92 Mon Sep 17 00:00:00 2001 From: Jiahao XU Date: Thu, 20 Mar 2025 00:23:56 +1100 Subject: [PATCH] Fix use of hickory-dns updated API Signed-off-by: Jiahao XU --- crates/binstalk-downloader/src/remote/resolver.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/binstalk-downloader/src/remote/resolver.rs b/crates/binstalk-downloader/src/remote/resolver.rs index 5982d309..1df98aab 100644 --- a/crates/binstalk-downloader/src/remote/resolver.rs +++ b/crates/binstalk-downloader/src/remote/resolver.rs @@ -65,7 +65,9 @@ fn new_resolver() -> Result { debug!("Resolver configuration complete"); opts.ip_strategy = LookupIpStrategy::Ipv4AndIpv6; - Ok(TokioAsyncResolver::tokio(config, opts)) + let mut builder = TokioAsyncResolver::builder_with_config(config, Default::default()); + *builder.options_mut() = opts; + Ok(builder.build()) } #[cfg(windows)]