Unverified Commit f11cc4db authored by Jimmy Hedman's avatar Jimmy Hedman Committed by GitHub

Make MDNS compile with IPv6 enabled (#1651)

parent 8c2901da
......@@ -268,7 +268,11 @@ bool MDNSResponder::_parseQuery(const MDNSResponder::stcMDNS_MsgHeader& p_MsgHea
remote = m_pUDPContext->getRemoteAddress();
local = WiFi.localIP();
netmask = WiFi.subnetMask();
#if LWIP_IPV6
if (ip4_addr_netcmp(&remote.u_addr.ip4, &local.u_addr.ip4, &netmask.u_addr.ip4))
#else
if (ip4_addr_netcmp(&remote, &local, &netmask))
#endif
// ip_info IPInfo_Local;
// ip_info IPInfo_Remote;
// if (((IPInfo_Remote.ip.addr = m_pUDPContext->getRemoteAddress()))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment