Skip to content

Commit 39de491

Browse files
mdns: Minor fix for mdns_service_remove()
Send the Goodbye packet while removing an mDNS service as an "Authoritative" packet so that the listeners remove the service from their records immediately. * Original commit: espressif/esp-idf@5c7eb7e
1 parent 19acac7 commit 39de491

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/mdns/mdns.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,7 @@ static void _mdns_pcb_send_bye(tcpip_adapter_if_t tcpip_if, mdns_ip_protocol_t i
14191419
if (!packet) {
14201420
return;
14211421
}
1422+
packet->flags = MDNS_FLAGS_AUTHORITATIVE;
14221423
size_t i;
14231424
for (i=0; i<len; i++) {
14241425
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_PTR, services[i]->service, true, true)) {

0 commit comments

Comments
 (0)