fix(mdns): ignore authoritative flag on reception

This commit is contained in:
Jiacheng Guo
2022-07-22 22:24:18 +08:00
parent d1129f3d19
commit 415e04a55f

View File

@ -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;
}