diff --git a/scripts/lang/chs/9_upgrade.lang b/scripts/lang/chs/9_upgrade.lang index 953ab36f0..de986d3cf 100644 --- a/scripts/lang/chs/9_upgrade.lang +++ b/scripts/lang/chs/9_upgrade.lang @@ -216,7 +216,7 @@ UPG_CORE_V1_SUFFIX=" \033[32m(原meta内核)支持全面\033[0m \033[33m占 UPG_CORE_V1_DOC="说明文档:\033[36;4mhttps://wiki.metacubex.one\033[0m" UPG_CORE_V2_PREFIX="2) \033[43;30mSingBoxR\033[0m:\033[32m" UPG_CORE_V2_SUFFIX=" \033[32m支持全面\033[0m \033[33m使用reF1nd增强分支\033[0m" -UPG_CORE_V2_DOC="说明文档:\033[36;4mhttps://sing-boxr.dustinwin.us.kg\033[0m" +UPG_CORE_V2_DOC="说明文档:\033[36;4mhttps://sing-boxr.dustinwin.cc.cd\033[0m" UPG_CORE_V3_PREFIX="3) \033[43;30mSingBox\033[0m:\033[32m" UPG_CORE_V3_SUFFIX=" \033[32m占用较低\033[0m \033[33m不支持providers\033[0m" UPG_CORE_V3_DOC="说明文档:\033[36;4mhttps://sing-box.sagernet.org\033[0m" diff --git a/scripts/lang/en/9_upgrade.lang b/scripts/lang/en/9_upgrade.lang index ccd5e2b80..5e91c1e7f 100644 --- a/scripts/lang/en/9_upgrade.lang +++ b/scripts/lang/en/9_upgrade.lang @@ -216,7 +216,7 @@ UPG_CORE_V1_SUFFIX=" \033[32m(full meta core) highly compatible\033[0m \033[33mm UPG_CORE_V1_DOC="Docs: \033[36;4mhttps://wiki.metacubex.one\033[0m" UPG_CORE_V2_PREFIX="2) \033[43;30mSingBoxR\033[0m: \033[32m" UPG_CORE_V2_SUFFIX=" \033[32mfully featured\033[0m \033[33mreF1nd enhanced branch\033[0m" -UPG_CORE_V2_DOC="Docs: \033[36;4mhttps://sing-boxr.dustinwin.us.kg\033[0m" +UPG_CORE_V2_DOC="Docs: \033[36;4mhttps://sing-boxr.dustinwin.cc.cd\033[0m" UPG_CORE_V3_PREFIX="3) \033[43;30mSingBox\033[0m: \033[32m" UPG_CORE_V3_SUFFIX=" \033[32mlower resource usage\033[0m \033[33mproviders are not supported\033[0m" UPG_CORE_V3_DOC="Docs: \033[36;4mhttps://sing-box.sagernet.org\033[0m" 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 3a9180cdb..64a6f34f4 100644 --- a/scripts/starts/singbox_modify.sh +++ b/scripts/starts/singbox_modify.sh @@ -92,10 +92,11 @@ EOF ], "rules": [ { - "ip_accept_any": true, + "preferred_by": [ "hosts" ], "server": "hosts" } - ]} + ] + } } EOF fi @@ -153,7 +154,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 +325,21 @@ generate_outbounds_and_experimental_jsons() { $add_global ] } +EOF + #生成http_clients.json + cat >"$TMPDIR"/jsons/http_clients.json <