mirror of
https://codeberg.org/slatian/service.echoip-slatecave.git
synced 2024-11-10 00:27:21 +01:00
to_trust_resolver_config() -> to_hickory_resolver_config()
This commit is contained in:
parent
b5097b5a03
commit
1ce60d8291
@ -86,7 +86,7 @@ impl Into<Protocol> for DnsProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl DnsResolverConfig {
|
impl DnsResolverConfig {
|
||||||
pub fn to_trust_resolver_config(
|
pub fn to_hickory_resolver_config(
|
||||||
&self
|
&self
|
||||||
) -> HickoryResolverConfig {
|
) -> HickoryResolverConfig {
|
||||||
let mut resolver = HickoryResolverConfig::new();
|
let mut resolver = HickoryResolverConfig::new();
|
||||||
|
@ -227,7 +227,7 @@ async fn main() {
|
|||||||
for (key, resolver_config) in &config.dns.resolver {
|
for (key, resolver_config) in &config.dns.resolver {
|
||||||
println!("Initalizing {} resolver ...", key);
|
println!("Initalizing {} resolver ...", key);
|
||||||
let resolver = TokioAsyncResolver::tokio(
|
let resolver = TokioAsyncResolver::tokio(
|
||||||
resolver_config.to_trust_resolver_config(),
|
resolver_config.to_hickory_resolver_config(),
|
||||||
Default::default()
|
Default::default()
|
||||||
);
|
);
|
||||||
dns_resolver_map.insert(key.clone(), resolver);
|
dns_resolver_map.insert(key.clone(), resolver);
|
||||||
|
Loading…
Reference in New Issue
Block a user