From 659c470eba542383987aad227b7f918100f131fa Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期五, 11 九月 2026 15:09:05 +0800
Subject: [PATCH] 小智终端 5种 场景模式 OK
---
xiaozhi-esp32-2.2.6/main/CMakeLists.txt | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/xiaozhi-esp32-2.2.6/main/CMakeLists.txt b/xiaozhi-esp32-2.2.6/main/CMakeLists.txt
index c27455e..ac0d6bb 100644
--- a/xiaozhi-esp32-2.2.6/main/CMakeLists.txt
+++ b/xiaozhi-esp32-2.2.6/main/CMakeLists.txt
@@ -1201,3 +1201,21 @@
else()
message(STATUS "Assets partition not found, using v1 partition table")
endif()
+
+# Patch 78/esp-wifi-connect so the captive portal accepts zh_CN and reclaims
+# httpd sockets stolen by WeChat /mmtls captive-DNS probes.
+find_component_by_pattern("esp-wifi-connect" WIFI_CONNECT_COMPONENT WIFI_CONNECT_PATH)
+if(WIFI_CONNECT_PATH)
+ execute_process(
+ COMMAND python "${PROJECT_DIR}/scripts/patch_wifi_connect.py" "${WIFI_CONNECT_PATH}"
+ RESULT_VARIABLE WIFI_CONNECT_PATCH_RESULT
+ OUTPUT_VARIABLE WIFI_CONNECT_PATCH_OUTPUT
+ ERROR_VARIABLE WIFI_CONNECT_PATCH_OUTPUT
+ )
+ if(WIFI_CONNECT_PATCH_OUTPUT)
+ message(STATUS "${WIFI_CONNECT_PATCH_OUTPUT}")
+ endif()
+ if(NOT WIFI_CONNECT_PATCH_RESULT EQUAL 0)
+ message(WARNING "Failed to patch esp-wifi-connect at ${WIFI_CONNECT_PATH}")
+ endif()
+endif()
--
Gitblit v1.9.1