Skip to content

Commit

Permalink
Changing listen to listen the current iface only instead of 0 (#7217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktr authored Apr 17, 2020
1 parent a36a6c8 commit 77b82a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 77b82a0

Please sign in to comment.