fix(core): 回滚之前引入的过度防御逻辑,使用纯净的原版代码覆盖子模块,配合根目录引导程序的 exec </dev/tty 彻底解决终端污染与 Telegram 报文解析崩溃问题

This commit is contained in:
hotyue
2026-06-03 02:30:47 +00:00
parent 5ca8a94b5d
commit 40a41cc9ea
2 changed files with 37 additions and 14 deletions

View File

@@ -4,9 +4,6 @@
# 核心功能: 冗余网络栈探测、多出口容灾弹匣装填、老节点平滑迁移网络配置
# ==========================================================
# ----------------------------------------------------------
# [时序 8] 冗余网络栈探测与多出口智能嗅探
# ----------------------------------------------------------
do_network_probe() {
if [ "$UPGRADE_MODE" == "false" ]; then
echo -e "\n\033[36m[4.5/7] 正在探测本机网络栈与可用出口 (多节点雷达扫描中)...\033[0m"
@@ -86,9 +83,6 @@ do_network_probe() {
fi
}
# ----------------------------------------------------------
# [时序 9] 智能主副容灾弹药装填 (Multi-IP Fallback)
# ----------------------------------------------------------
do_assemble_fallback() {
if [ "$UPGRADE_MODE" == "false" ]; then
echo -e "\n\033[36m[4.6/7] 正在装填通讯容灾防线 (Multi-IP Fallback)...\033[0m"
@@ -151,9 +145,6 @@ do_assemble_fallback() {
fi
}
# ----------------------------------------------------------
# [时序 10.A] 远程拉取冷数据并解析固化配置 (仅限全新安装)
# ----------------------------------------------------------
do_write_config() {
if [ "$UPGRADE_MODE" == "false" ]; then
echo -e "\n[5/7] 正在从云端数据仓库拉取 [${CITY_NAME}] 节点的底层规则..."
@@ -207,9 +198,6 @@ EOF
fi
}
# ----------------------------------------------------------
# [时序 10.B] 老节点数据格式迁移兼容机制 (仅限平滑升级)
# ----------------------------------------------------------
do_smooth_migrate() {
if [ "$UPGRADE_MODE" == "true" ]; then
if ! grep -q "PUBLIC_IP=" "$CONFIG_FILE"; then