mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mdns: Fix a portion of the queries are issued with the wildcard query type
This commit is contained in:
parent
39dd71d958
commit
1bbe9538ef
@ -1180,7 +1180,7 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t * parsed
|
||||
}
|
||||
if (service) {
|
||||
if (q->type == MDNS_TYPE_PTR || q->type == MDNS_TYPE_ANY) {
|
||||
if (q->type == MDNS_TYPE_PTR) {
|
||||
if (q->type == MDNS_TYPE_PTR || !parsed_packet->probe) {
|
||||
shared = true;
|
||||
}
|
||||
if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_PTR, service->service, false, false)
|
||||
@ -2555,7 +2555,7 @@ void mdns_parse_packet(mdns_rx_packet_t * packet)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (type == MDNS_TYPE_ANY) {
|
||||
if (type == MDNS_TYPE_ANY && !_str_null_or_empty(name->host)) {
|
||||
parsed_packet->probe = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user