From 161b6ecc9a4a310eac5d966c6f37e3e175d30bf9 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:54:25 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=9B=B4=E6=96=B0s?= =?UTF-8?q?ing-box=E8=AE=A2=E9=98=85=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=BF=BD?= =?UTF-8?q?=E7=95=A5=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- documents/sing-box.json | 36 +++++++++++++----------------------- install.sh | 2 +- 2 files changed, 14 insertions(+), 24 deletions(-) diff --git a/documents/sing-box.json b/documents/sing-box.json index 3de6947..b020d5a 100644 --- a/documents/sing-box.json +++ b/documents/sing-box.json @@ -205,26 +205,9 @@ ], "default": "direct" }, - { - "type": "selector", - "tag": "reject", - "outbounds": [ - "block", - "direct" - ], - "default": "block" - }, { "tag": "direct", "type": "direct" - }, - { - "tag": "block", - "type": "block" - }, - { - "tag": "dns", - "type": "dns" } ], "route": { @@ -357,6 +340,13 @@ } ], "rules": [ + { + "action": "sniff" + }, + { + "protocol": "dns", + "action": "hijack-dns" + }, { "clash_mode": "global", "outbound": "手动切换" @@ -365,10 +355,6 @@ "clash_mode": "direct", "outbound": "本地直连" }, - { - "protocol": "dns", - "outbound": "dns" - }, { "type": "logical", "mode": "or", @@ -389,7 +375,9 @@ "protocol": "stun" } ], - "outbound": "block" + "action": "reject", + "method": "default", + "no_drop": false }, { "rule_set": [ @@ -411,7 +399,9 @@ }, { "rule_set": "geosite-openai@ads", - "outbound": "block" + "action": "reject", + "method": "default", + "no_drop": false }, { "rule_set": "geosite-openai", diff --git a/install.sh b/install.sh index 1fa9f24..513352c 100644 --- a/install.sh +++ b/install.sh @@ -9748,7 +9748,7 @@ menu() { cd "$HOME" || exit echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v3.4.1" + echoContent green "当前版本:v3.4.2" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:八合一共存脚本\c" showInstallStatus