Skip to content

Commit

Permalink
igmp: force on selected interface (avoid crash *sometimes*)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v committed Jul 24, 2019
1 parent 3c6b481 commit 7d8bb51
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 @@ -199,7 +199,7 @@ bool MDNSResponder::_allocUDPContext(void) {
//TODO: set multicast address (lwip_joingroup() is IPv4 only at the time of writing)
multicast_addr.addr = DNS_MQUERY_IPV6_GROUP_INIT;
#endif
if (ERR_OK == igmp_joingroup(IP4_ADDR_ANY4, ip_2_ip4(&multicast_addr))) {
if (ERR_OK == igmp_joingroup(&m_netif->ip_addr, ip_2_ip4(&multicast_addr))) {
m_pUDPContext = new UdpContext;
m_pUDPContext->ref();

Expand Down

0 comments on commit 7d8bb51

Please sign in to comment.