From 8d022f876f995e20a2644a7214cb22a3222ce3f8 Mon Sep 17 00:00:00 2001 From: DustinWin Date: Sat, 9 May 2026 15:23:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=20sing-box=20v1.14.0-alpha.2?= =?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 | 27 ++++++++++++++++++++------- 2 files changed, 21 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..1de8cae4f 100644 --- a/scripts/starts/singbox_modify.sh +++ b/scripts/starts/singbox_modify.sh @@ -91,11 +91,9 @@ EOF } ], "rules": [ - { - "ip_accept_any": true, - "server": "hosts" - } - ]} + { "preferred_by": [ "hosts" ], "server": "hosts" } + ] + } } EOF fi @@ -153,7 +151,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 +322,21 @@ generate_outbounds_and_experimental_jsons() { $add_global ] } +EOF + #生成http_clients.json + cat >"$TMPDIR"/jsons/http_clients.json <