cache: improve update call by doing a full refresh probe master
authorJohn Crispin <john@phrozen.org>
Tue, 17 Sep 2024 16:00:37 +0000 (18:00 +0200)
committerJohn Crispin <john@phrozen.org>
Tue, 17 Sep 2024 16:01:01 +0000 (18:01 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
cache.c

diff --git a/cache.c b/cache.c
index 83249939d304de87e54378a335def6f9e5d6f45e..384487aa3d8b7a604acae5c637bfd9703ca6803f 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -143,11 +143,11 @@ void
 cache_update(void)
 {
        struct interface *iface;
 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*
 }
 
 static struct cache_service*