diff options
| author | John Crispin | 2024-09-17 16:00:37 +0000 |
|---|---|---|
| committer | John Crispin | 2024-09-17 16:01:01 +0000 |
| commit | fbaca4b6f530d4b2f361ee15c266aa19a708242b (patch) | |
| tree | 59cf28469885fc427582c20c7006bc11013521b2 | |
| parent | 93c9036d4e293b2c94a04a6a51bb0cc778e0b373 (diff) | |
| download | mdnsd-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.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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* |