to_trust_resolver_config() -> to_hickory_resolver_config()

This commit is contained in:
Slatian 2024-02-11 11:52:33 +01:00
parent b5097b5a03
commit 1ce60d8291
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ impl Into<Protocol> for DnsProtocol {
}
impl DnsResolverConfig {
pub fn to_trust_resolver_config(
pub fn to_hickory_resolver_config(
&self
) -> HickoryResolverConfig {
let mut resolver = HickoryResolverConfig::new();

View File

@ -227,7 +227,7 @@ async fn main() {
for (key, resolver_config) in &config.dns.resolver {
println!("Initalizing {} resolver ...", key);
let resolver = TokioAsyncResolver::tokio(
resolver_config.to_trust_resolver_config(),
resolver_config.to_hickory_resolver_config(),
Default::default()
);
dns_resolver_map.insert(key.clone(), resolver);