1
0
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:
Takayuki 'January June' Suwa 2020-05-04 03:52:35 +09:00 committed by GitHub
parent 4e3a4b6d21
commit bf718c39af
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 = 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));