mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mdns: limit the GOT_IP6_EVENT to only known network interfaces
This commit is contained in:
parent
eae8eaa55f
commit
ab8cab1c55
@ -3176,8 +3176,10 @@ static void _mdns_handle_system_event(esp_event_base_t event_base,
|
||||
case IP_EVENT_GOT_IP6:
|
||||
{
|
||||
mdns_if_t mdns_if = _mdns_get_if_from_esp_netif(interface);
|
||||
_mdns_enable_pcb(mdns_if, MDNS_IP_PROTOCOL_V6);
|
||||
_mdns_announce_pcb(mdns_if, MDNS_IP_PROTOCOL_V4, NULL, 0, true);
|
||||
if (mdns_if != MDNS_IF_MAX) {
|
||||
_mdns_enable_pcb(mdns_if, MDNS_IP_PROTOCOL_V6);
|
||||
_mdns_announce_pcb(mdns_if, MDNS_IP_PROTOCOL_V4, NULL, 0, true);
|
||||
}
|
||||
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user