1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Changing listen to listen the current iface only instead of 0 (#7217)

This commit is contained in:
Viktr 2020-04-18 02:31:31 +03:00 committed by GitHub
parent a36a6c8a3f
commit 77b82a0c27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -226,7 +226,7 @@ bool MDNSResponder::_allocUDPContext(void)
m_pUDPContext = new UdpContext;
m_pUDPContext->ref();
if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT))
if (m_pUDPContext->listen(&m_netif->ip_addr, DNS_MQUERY_PORT))
{
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));