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