From 7865ceeac294eea2669e5ed21e087b5809f703aa Mon Sep 17 00:00:00 2001 From: dichgrem Date: Thu, 14 Aug 2025 22:29:40 +0800 Subject: [PATCH] fix:legacy_json --- script/singbox.sh | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/script/singbox.sh b/script/singbox.sh index eda7dcb..0538d55 100644 --- a/script/singbox.sh +++ b/script/singbox.sh @@ -19,7 +19,8 @@ if [[ $EUID -ne 0 ]]; then exit 1 fi -CONFIG_DIR=/etc/singbox +# 修复:使用正确的配置目录 +CONFIG_DIR=/etc/sing-box STATE_FILE="$CONFIG_DIR/state.env" BIN_NAME=sing-box @@ -93,6 +94,8 @@ install_singbox() { SPX="/" mkdir -p "$CONFIG_DIR" + + # 修复:更新为新的配置格式 cat >"$CONFIG_DIR/config.json" <