fix(mdns): ignore authoritative flag on reception

This commit is contained in:
Jiacheng Guo committed 2022-07-22 22:25:08 +08:00
1 parent d1129f3d19
commit 415e04a55f
1 file changed
+1 -1
+1 -1
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;
}