We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddaee2 commit 5a81eaeCopy full SHA for 5a81eae
components/mdns/mdns.c
@@ -1448,7 +1448,8 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t *parsed_
1448
}
1449
1450
#ifdef MDNS_REPEAT_QUERY_IN_RESPONSE
1451
- if (q->type == MDNS_TYPE_ANY || q->type == MDNS_TYPE_A || q->type == MDNS_TYPE_AAAA) {
+ if (parsed_packet->src_port != MDNS_SERVICE_PORT && // Repeat the queries only for "One-Shot mDNS queries"
1452
+ (q->type == MDNS_TYPE_ANY || q->type == MDNS_TYPE_A || q->type == MDNS_TYPE_AAAA)) {
1453
mdns_out_question_t * out_question = malloc(sizeof(mdns_out_question_t));
1454
if (out_question == NULL) {
1455
HOOK_MALLOC_FAILED;
0 commit comments