From c878dfc2182b1b178d9db83189c92053147d39a3 Mon Sep 17 00:00:00 2001 From: eooce <142894633+eooce@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:35:53 +0800 Subject: [PATCH] =?UTF-8?q?VPS=E4=B8=80=E9=94=AE=E5=9B=9B=E5=90=88?= =?UTF-8?q?=E4=B8=80=E8=84=9A=E6=9C=AC(reality+vmess-argo+hysteria2+tuic5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sing-box.sh | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/sing-box.sh b/sing-box.sh index 908969d..55e32a5 100644 --- a/sing-box.sh +++ b/sing-box.sh @@ -201,13 +201,10 @@ cat > "${config_dir}" << EOF "dns": { "servers": [ { - "tag": "Google", - "address": "https://dns.google/dns-query", - "address_resolver": "local" - }, - { - "tag": "local", - "address": "local" + "tag": "google", + "address": "tls://8.8.8.8", + "strategy": "ipv4_only", + "detour": "direct" } ], "rules": [ @@ -230,7 +227,8 @@ cat > "${config_dir}" << EOF "server": "block" } ], - "final": "local", + "final": "google", + "strategy": "", "disable_cache": false, "disable_expire": false }, @@ -322,7 +320,7 @@ cat > "${config_dir}" << EOF } } ], - "outbounds": [ + "outbounds": [ { "type": "direct", "tag": "direct" @@ -363,12 +361,6 @@ cat > "${config_dir}" << EOF "ip_is_private": true, "outbound": "direct" }, - { - "rule_set": [ - "geosite-category-ads-all" - ], - "outbound": "block" - }, { "rule_set": [ "geosite-openai" @@ -380,6 +372,12 @@ cat > "${config_dir}" << EOF "geosite-netflix" ], "outbound": "wireguard-out" + }, + { + "rule_set": [ + "geosite-category-ads-all" + ], + "outbound": "block" } ], "rule_set": [ @@ -387,22 +385,24 @@ cat > "${config_dir}" << EOF "tag": "geosite-netflix", "type": "remote", "format": "binary", - "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-netflix.srs" + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-netflix.srs", + "download_detour": "direct" }, { "tag": "geosite-openai", "type": "remote", "format": "binary", - "url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/openai.srs" + "url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geosite/openai.srs", + "download_detour": "direct" }, { "tag": "geosite-category-ads-all", "type": "remote", "format": "binary", - "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs" + "url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-ads-all.srs", + "download_detour": "direct" } ], - "auto_detect_interface": true, "final": "direct" }, "experimental": {