From 27ab6a802dfe312a24877262c34fc5a90769e514 Mon Sep 17 00:00:00 2001 From: DustinWin Date: Sat, 18 Apr 2026 03:59:17 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=20sing-box=20v1.14.0-alpha.1?= =?UTF-8?q?1+=20=E7=89=88=E6=9C=AC=E5=86=85=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menus/override.sh | 2 +- scripts/starts/singbox_modify.sh | 28 +++++++++++++++++++++------- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/scripts/menus/override.sh b/scripts/menus/override.sh index 2045bc287..a4e2275ca 100644 --- a/scripts/menus/override.sh +++ b/scripts/menus/override.sh @@ -540,7 +540,7 @@ EOF # s自定义singbox配置文件 set_singbox_adv() { comp_box "\033[33m$OVR_SING_TITLE1\033[0m" \ - "\033[36mlog dns ntp certificate experimental\033[0m" \ + "\033[36mlog dns ntp certificate http_clients experimental\033[0m" \ "\033[33m$OVR_SING_TITLE2\033[0m" \ "\033[36mendpoints inbounds outbounds providers route services\033[0m" \ "$OVR_SING_TITLE3" \ diff --git a/scripts/starts/singbox_modify.sh b/scripts/starts/singbox_modify.sh index e12fae3ef..5d59a1ee6 100644 --- a/scripts/starts/singbox_modify.sh +++ b/scripts/starts/singbox_modify.sh @@ -91,11 +91,10 @@ EOF } ], "rules": [ - { - "ip_accept_any": true, - "server": "hosts" - } - ]} + { "action": "evaluate", "server": "hosts" }, + { "match_response": true, "ip_accept_any": true, "action": "respond" } + ] + } } EOF fi @@ -153,7 +152,7 @@ generate_dns_related_jsons() { "format": "binary", $srs_path "url": "https://testingcf.jsdelivr.net/gh/DustinWin/ruleset_geodata@sing-box-ruleset/cn.srs", - "download_detour": "DIRECT" + "http_client": "detour_direct" } ] } @@ -324,6 +323,21 @@ generate_outbounds_and_experimental_jsons() { $add_global ] } +EOF + #生成http_clients.json + cat >"$TMPDIR"/jsons/http_clients.json <