mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix use of hickory-dns updated API
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
c931f40446
commit
8b83d46560
1 changed files with 3 additions and 1 deletions
|
@ -65,7 +65,9 @@ fn new_resolver() -> Result<TokioAsyncResolver, BoxError> {
|
|||
|
||||
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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue