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:
parent
a36a6c8a3f
commit
77b82a0c27
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user