From: John Crispin Date: Tue, 17 Sep 2024 16:00:37 +0000 (+0200) Subject: cache: improve update call by doing a full refresh probe X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;p=project%2Fmdnsd.git cache: improve update call by doing a full refresh probe Signed-off-by: John Crispin --- diff --git a/cache.c b/cache.c index 8324993..384487a 100644 --- a/cache.c +++ b/cache.c @@ -143,11 +143,11 @@ void cache_update(void) { struct interface *iface; - struct cache_service *s; - vlist_for_each_element(&interfaces, iface, node) - avl_for_each_element(&services, s, avl) - dns_send_question(iface, NULL, s->entry, TYPE_PTR, 0); + vlist_for_each_element(&interfaces, iface, node) { + dns_send_question(iface, NULL, C_DNS_SD, TYPE_ANY, 0); + dns_send_question(iface, NULL, C_DNS_SD, TYPE_PTR, 0); + } } static struct cache_service*