Fix get_configs() in resolver.rs on Windows

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
Jiahao XU 2024-11-09 14:42:30 +11:00 committed by GitHub
parent 30cb6c39d5
commit 3928228a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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<dyn std::error::Error + Send + Sync>;
@ -53,6 +53,7 @@ fn get_configs() -> Result<(ResolverConfig, ResolverOpts), BoxError> {
#[cfg(feature = "rustls")]
tls_config: None,
bind_addr: None,
http_endpoint: None,
})
}
});