Merge branch 'eth-dns-fix' into 'main'

Ethernet Commissioning fix

See merge request app-frameworks/esp-matter!453
This commit is contained in:
Hrishikesh Dhayagude
2023-09-13 17:05:26 +08:00
+1 -1
View File
@@ -893,7 +893,7 @@ static void device_callback_internal(const ChipDeviceEvent * event, intptr_t arg
switch (event->Type)
{
case chip::DeviceLayer::DeviceEventType::kInterfaceIpAddressChanged:
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI
#if CHIP_DEVICE_CONFIG_ENABLE_WIFI || CHIP_DEVICE_CONFIG_ENABLE_ETHERNET
if (event->InterfaceIpAddressChanged.Type == chip::DeviceLayer::InterfaceIpChangeType::kIpV6_Assigned ||
event->InterfaceIpAddressChanged.Type == chip::DeviceLayer::InterfaceIpChangeType::kIpV4_Assigned) {
chip::app::DnssdServer::Instance().StartServer();