mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 07:06:36 +00:00
Fix resolver.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
0edced781b
commit
dffb233120
1 changed files with 1 additions and 3 deletions
|
@ -2,7 +2,7 @@ use std::{net::SocketAddr, sync::Arc};
|
||||||
|
|
||||||
use hickory_resolver::{
|
use hickory_resolver::{
|
||||||
config::{LookupIpStrategy, ResolverConfig, ResolverOpts},
|
config::{LookupIpStrategy, ResolverConfig, ResolverOpts},
|
||||||
system_conf, TokioAsyncResolver,
|
system_conf, TokioResolver as TokioAsyncResolver,
|
||||||
};
|
};
|
||||||
use once_cell::sync::OnceCell;
|
use once_cell::sync::OnceCell;
|
||||||
use reqwest::dns::{Addrs, Name, Resolve, Resolving};
|
use reqwest::dns::{Addrs, Name, Resolve, Resolving};
|
||||||
|
@ -50,8 +50,6 @@ fn get_configs() -> Result<(ResolverConfig, ResolverOpts), BoxError> {
|
||||||
protocol,
|
protocol,
|
||||||
tls_dns_name: None,
|
tls_dns_name: None,
|
||||||
trust_negative_responses: false,
|
trust_negative_responses: false,
|
||||||
#[cfg(feature = "rustls")]
|
|
||||||
tls_config: None,
|
|
||||||
bind_addr: None,
|
bind_addr: None,
|
||||||
http_endpoint: None,
|
http_endpoint: None,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue