From 1d49fab7de451773c3a3278d49938e81e5e9acd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Wed, 6 Oct 2021 17:26:03 +0200 Subject: [PATCH] Test IPV6 --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index c475369..2aa00ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -84,9 +84,11 @@ struct Tester { impl Tester { fn new() -> Result { + let mut resolver_opt = ResolverOpts::default(); + resolver_opt.ip_strategy = LookupIpStrategy::Ipv4AndIpv6; Ok(Tester { config: toml::from_str(&fs::read_to_string("config.toml")?)?, - dns_resolver: Resolver::new(ResolverConfig::default(), ResolverOpts::default())?, + dns_resolver: Resolver::new(ResolverConfig::default(), resolver_opt)?, }) }