From 7a742628589838b8d978d1b45545cf7b343aebad Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 28 Nov 2019 11:04:37 +0100 Subject: [PATCH] mdns: respond to discovery with the proper pseudo name _services._dns-sd._udp Closes https://github.com/espressif/esp-idf/issues/4369 Closes IDFGH-2219 --- 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 de8f79a81d..d0530cf782 100644 --- a/components/mdns/mdns.c +++ b/components/mdns/mdns.c @@ -1251,7 +1251,7 @@ static void _mdns_create_answer_from_parsed_packet(mdns_parsed_packet_t * parsed } } else if (q->type == MDNS_TYPE_SDPTR) { shared = true; - if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_PTR, service->service, false, false)) { + if (!_mdns_alloc_answer(&packet->answers, MDNS_TYPE_SDPTR, service->service, false, false)) { _mdns_free_tx_packet(packet); return; }