Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank committed Aug 23, 2023
1 parent f8faa71 commit c6f5212
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 68 deletions.
109 changes: 44 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ version = "1.13.0"
features = ["fs", "macros", "process", "rt-multi-thread", "sync", "time"]

[dependencies.trust-dns-resolver]
version = "0.22.0"
version = "0.23.0"
default-features = false
features = ["tokio-runtime"]

Expand Down
4 changes: 2 additions & 2 deletions src/utils/domain_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl DomainValidator {
socket_addr,
protocol: Protocol::Udp,
tls_dns_name: None,
trust_nx_responses: true,
trust_negative_responses: true,
bind_addr: None,
});
}
Expand All @@ -118,7 +118,7 @@ impl DomainValidator {
opts.use_hosts_file = false;

// Unwrap, because this currently doesn't appear to fail ever.
self.dns_resolver = Some(TokioAsyncResolver::tokio(cfg, opts).unwrap());
self.dns_resolver = Some(TokioAsyncResolver::tokio(cfg, opts));
Ok(())
}

Expand Down

0 comments on commit c6f5212

Please sign in to comment.