From f2ee6d221778c5aa6ef9b377dff491966aedb135 Mon Sep 17 00:00:00 2001 From: Wang Qixiang <43193572+wqx6@users.noreply.github.com> Date: Fri, 17 Jan 2025 00:16:49 +0800 Subject: [PATCH] controller: fix build when disabling TCP (#37081) --- src/controller/CHIPDeviceControllerFactory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/CHIPDeviceControllerFactory.cpp b/src/controller/CHIPDeviceControllerFactory.cpp index c0f05160d77804..cbc29de5f86338 100644 --- a/src/controller/CHIPDeviceControllerFactory.cpp +++ b/src/controller/CHIPDeviceControllerFactory.cpp @@ -290,8 +290,10 @@ CHIP_ERROR DeviceControllerFactory::InitSystemState(FactoryInitParams params) // app::DnssdServer::Instance().SetFabricTable(stateParams.fabricTable); +#if INET_CONFIG_ENABLE_TCP_ENDPOINT // Disable the TCP Server based on the TCPListenParameters setting. app::DnssdServer::Instance().SetTCPServerEnabled(tcpListenParams.IsServerListenEnabled()); +#endif } stateParams.sessionSetupPool = Platform::New();