summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin2024-09-17 16:00:37 +0000
committerJohn Crispin2024-09-17 16:01:01 +0000
commitfbaca4b6f530d4b2f361ee15c266aa19a708242b (patch)
tree59cf28469885fc427582c20c7006bc11013521b2
parent93c9036d4e293b2c94a04a6a51bb0cc778e0b373 (diff)
downloadmdnsd-fbaca4b6f530d4b2f361ee15c266aa19a708242b.tar.gz
cache: improve update call by doing a full refresh probe
Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--cache.c8
1 files changed, 4 insertions, 4 deletions
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*