From 415e04a55fbf3b43479bd63fb05746657fcc4e4c Mon Sep 17 00:00:00 2001 From: Jiacheng Guo Date: Fri, 22 Jul 2022 22:24:18 +0800 Subject: [PATCH] fix(mdns): ignore authoritative flag on reception --- components/mdns/mdns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mdns/mdns.c b/components/mdns/mdns.c index 9294d5598..3e070b6e6 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -3499,7 +3499,7 @@ void mdns_parse_packet(mdns_rx_packet_t * packet) service = _mdns_get_service_item(name->service, name->proto, NULL); } } else { - if (!parsed_packet->authoritative || record_type == MDNS_NS) { + if (!header.flags.qr || record_type == MDNS_NS) { //skip this record continue; }