Fixed OPT record forwarding.

This commit is contained in:
Revertron
2021-09-09 18:18:03 +02:00
parent 9fe8fa31eb
commit 903a3b1550
5 changed files with 26 additions and 10 deletions
+4 -1
View File
@@ -369,7 +369,9 @@ impl HttpsDnsClient {
let agent = ureq::AgentBuilder::new()
.user_agent(&client_name)
.timeout(std::time::Duration::from_secs(3))
.timeout(std::time::Duration::from_secs(5))
.max_idle_connections_per_host(8)
.max_idle_connections(16)
.resolver(move |addr: &str| {
let addr = match addr.find(":") {
Some(index) => addr[0..index].to_string(),
@@ -468,6 +470,7 @@ impl DnsClient for HttpsDnsClient {
}
Err(e) => warn!("DoH error: {}", &e.to_string())
}
warn!("Lookup of {} failed", qname);
Err(ClientError::LookupFailed)
}
}