From 5dd8c68f08c412194ed1db0287cfd0c0c5a66505 Mon Sep 17 00:00:00 2001 From: wnlen <62139570+wnlen@users.noreply.github.com> Date: Wed, 14 Jan 2026 22:21:01 +0800 Subject: [PATCH] Update start.sh --- start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start.sh b/start.sh index 2f76acf..fc75d86 100644 --- a/start.sh +++ b/start.sh @@ -347,6 +347,12 @@ if [ ! -s "$Conf_Dir/config.yaml" ]; then exit 1 fi +# 最终护栏:禁止未渲染的占位符进入运行态 +if grep -q '\${' "$Conf_Dir/config.yaml"; then + echo "[ERROR] config.yaml contains unresolved placeholders (\${...}). Please check template rendering." >&2 + exit 1 +fi + echo -e '\n正在启动Clash服务...' Text5="服务启动成功!" Text6="服务启动失败!"