mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Revert "Changing listen to listen the current iface only instead of 0" (#7266)
workaround for #7262 (reverts #7217) Co-authored-by: Takayuki 'January June' Suwa <jjsuwa.sys3175@gmail.com>
This commit is contained in:
parent
4e3a4b6d21
commit
bf718c39af
@ -226,7 +226,7 @@ bool MDNSResponder::_allocUDPContext(void)
|
|||||||
m_pUDPContext = new UdpContext;
|
m_pUDPContext = new UdpContext;
|
||||||
m_pUDPContext->ref();
|
m_pUDPContext->ref();
|
||||||
|
|
||||||
if (m_pUDPContext->listen(&m_netif->ip_addr, DNS_MQUERY_PORT))
|
if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT))
|
||||||
{
|
{
|
||||||
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
|
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
|
||||||
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
|
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user