From 3928228a1a11a985ce8233d4ac86564c588456b5 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Sat, 9 Nov 2024 14:42:30 +1100 Subject: [PATCH] Fix get_configs() in resolver.rs on Windows Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-downloader/src/remote/resolver.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/binstalk-downloader/src/remote/resolver.rs b/crates/binstalk-downloader/src/remote/resolver.rs index 0f14d97a..4a7b64bc 100644 --- a/crates/binstalk-downloader/src/remote/resolver.rs +++ b/crates/binstalk-downloader/src/remote/resolver.rs @@ -9,7 +9,7 @@ use reqwest::dns::{Addrs, Name, Resolve, Resolving}; use tracing::{debug, instrument, warn}; #[cfg(windows)] -use hickory_resolver::{config::NameServerConfig, xfer::Protocol}; +use hickory_resolver::{config::NameServerConfig, proto::xfer::Protocol}; type BoxError = Box; @@ -53,6 +53,7 @@ fn get_configs() -> Result<(ResolverConfig, ResolverOpts), BoxError> { #[cfg(feature = "rustls")] tls_config: None, bind_addr: None, + http_endpoint: None, }) } });