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)]