Thanks to visit codestin.com Credit goes to github.com
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 a36a6c8 commit 77b82a0Copy full SHA for 77b82a0
libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp
@@ -226,7 +226,7 @@ bool MDNSResponder::_allocUDPContext(void)
226
m_pUDPContext = new UdpContext;
227
m_pUDPContext->ref();
228
229
- if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT))
+ if (m_pUDPContext->listen(&m_netif->ip_addr, DNS_MQUERY_PORT))
230
{
231
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
232
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
0 commit comments