Test IPV6

This commit is contained in:
Rémi BERTHO 2021-10-06 17:26:03 +02:00
parent 94050d4af4
commit 1d49fab7de
Signed by: dalan
GPG key ID: EE3B917931C07B64

View file

@ -84,9 +84,11 @@ struct Tester {
impl Tester { impl Tester {
fn new() -> Result<Tester> { fn new() -> Result<Tester> {
let mut resolver_opt = ResolverOpts::default();
resolver_opt.ip_strategy = LookupIpStrategy::Ipv4AndIpv6;
Ok(Tester { Ok(Tester {
config: toml::from_str(&fs::read_to_string("config.toml")?)?, 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)?,
}) })
} }