From 947d93d3ea43e43d44f16281d4cb037a5fda2396 Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 14 Jul 2026 10:47:13 +0800 Subject: [PATCH] =?UTF-8?q?~=E9=80=82=E9=85=8Dsingbox1.14+=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=86=85=E6=A0=B8=20~=E4=BF=AE=E5=A4=8Ddebug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E6=8F=90=E7=A4=BA=E6=89=BE=E4=B8=8D=E5=88=B0=E5=86=85?= =?UTF-8?q?=E6=A0=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menus/8_tools.sh | 3 ++- scripts/starts/singbox_modify.sh | 44 +++++++++++++++++--------------- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/scripts/menus/8_tools.sh b/scripts/menus/8_tools.sh index 1442dc45..ad1c0f7c 100644 --- a/scripts/menus/8_tools.sh +++ b/scripts/menus/8_tools.sh @@ -684,6 +684,7 @@ testcommand() { } debug() { + rm -f "$CRASHDIR"/\.start_error #移除自启失败标记 echo "$crashcore" | grep -q 'singbox' && config_tmp="$TMPDIR"/jsons || config_tmp="$TMPDIR"/config.yaml comp_box "\033[36m$TOOLS_DEBUG_WARN1\033[0m" \ "${TOOLS_DEBUG_WARN2_PREFIX}\033[32m$TMPDIR/debug.log\033[0m${TOOLS_DEBUG_WARN2_SUFFIX}" \ @@ -705,7 +706,7 @@ debug() { 0) ;; 1) "$CRASHDIR"/start.sh stop - "$CRASHDIR"/start.sh bfstart + "$CRASHDIR"/starts/bfstart.sh if echo "$crashcore" | grep -q 'singbox'; then "$TMPDIR"/CrashCore run -D "$BINDIR" -C "$TMPDIR"/jsons & { diff --git a/scripts/starts/singbox_modify.sh b/scripts/starts/singbox_modify.sh index bf8b4c24..989048df 100644 --- a/scripts/starts/singbox_modify.sh +++ b/scripts/starts/singbox_modify.sh @@ -52,6 +52,8 @@ extract_base_jsons() { cat "$TMPDIR"/format.json | sed -n '/^ "providers":/,/^ "[a-z]/p' | sed '$d' >>"$TMPDIR"/jsons/providers.json } cat "$TMPDIR"/format.json | sed -n '/"route":/,/^\( "[a-z]\|}\)/p' | sed '$d' >>"$TMPDIR"/jsons/route.json + #清理PASS规则 + sed -i 's/"PASS"/"DIRECT"/g' "$TMPDIR"/jsons/outbounds.json } generate_basic_jsons() { @@ -62,6 +64,21 @@ generate_basic_jsons() { else preferred='"preferred_by": [ "hosts" ],' detour_direct='"http_client": "detour_direct"' + #生成http_clients.json + cat >"$TMPDIR"/jsons/http_clients.json <"$TMPDIR"/jsons/http_clients.json <"$TMPDIR"/jsons/experimental.json </dev/null