1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-24 19:42:27 +03:00

MDNS: fix legacy unicast responses (#6613)

* mdns: use ID from parameter struct when constructing response message

* print id for legacy requests
This commit is contained in:
Max Prokhorov
2019-10-07 15:25:51 +03:00
committed by david gauchard
parent d7abafea2f
commit d62fb9ffeb
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ bool MDNSResponder::_prepareMDNSMessage(MDNSResponder::stcMDNSSendParameter& p_r
bool bResult = true;
// Prepare header; count answers
stcMDNS_MsgHeader msgHeader(0, p_rSendParameter.m_bResponse, 0, p_rSendParameter.m_bAuthorative);
stcMDNS_MsgHeader msgHeader(p_rSendParameter.m_u16ID, p_rSendParameter.m_bResponse, 0, p_rSendParameter.m_bAuthorative);
// If this is a response, the answers are anwers,
// else this is a query or probe and the answers go into auth section
uint16_t& ru16Answers = (p_rSendParameter.m_bResponse