add missing dns request notify

This commit is contained in:
Ferdinand Schober
2024-07-12 17:18:18 +02:00
parent 740272e9a5
commit f052efe086
2 changed files with 2 additions and 0 deletions

View File

@@ -58,6 +58,7 @@ impl DnsResolver {
server.notify_client_update(handle);
log::info!("resolving ({handle}) `{hostname}` ...");
let ips = match self.resolve(&hostname).await {
Ok(ips) => ips,
Err(e) => {

View File

@@ -287,6 +287,7 @@ impl Server {
fn request_dns(&self, handle: ClientHandle) {
self.pending_dns_requests.borrow_mut().push_back(handle);
self.notifies.dns_request_pending.notify_one();
}
async fn handle_request(