Skip to content

Commit 7d8bb51

Browse files
committed
igmp: force on selected interface (avoid crash *sometimes*)
1 parent 3c6b481 commit 7d8bb51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266mDNS/src/LEAmDNS_Helpers.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ bool MDNSResponder::_allocUDPContext(void) {
199199
//TODO: set multicast address (lwip_joingroup() is IPv4 only at the time of writing)
200200
multicast_addr.addr = DNS_MQUERY_IPV6_GROUP_INIT;
201201
#endif
202-
if (ERR_OK == igmp_joingroup(IP4_ADDR_ANY4, ip_2_ip4(&multicast_addr))) {
202+
if (ERR_OK == igmp_joingroup(&m_netif->ip_addr, ip_2_ip4(&multicast_addr))) {
203203
m_pUDPContext = new UdpContext;
204204
m_pUDPContext->ref();
205205

0 commit comments

Comments
 (0)