fix trust_negative_responses config option
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
160b9afe97
commit
b6cf0e6fcf
1 changed files with 1 additions and 3 deletions
|
@ -52,9 +52,7 @@ impl Resolver {
|
||||||
for sys_conf in sys_conf.name_servers() {
|
for sys_conf in sys_conf.name_servers() {
|
||||||
let mut ns = sys_conf.clone();
|
let mut ns = sys_conf.clone();
|
||||||
|
|
||||||
if config.query_all_nameservers {
|
ns.trust_negative_responses = !config.query_all_nameservers;
|
||||||
ns.trust_negative_responses = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
conf.add_name_server(ns);
|
conf.add_name_server(ns);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue