mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix get_configs() in resolver.rs on Windows
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
30cb6c39d5
commit
3928228a1a
1 changed files with 2 additions and 1 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue