Test IPV6
This commit is contained in:
parent
94050d4af4
commit
1d49fab7de
1 changed files with 3 additions and 1 deletions
|
@ -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)?,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue