Skip to content

Commit

Permalink
Update clash and sing-box example configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
CHIZI-0618 committed Mar 31, 2023
1 parent 2ba3d8f commit 8c65645
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
2 changes: 1 addition & 1 deletion box/clash/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ dns:
nameserver:
- 'https://8.8.8.8/dns-query#dns'
- 'https://1.1.1.1/dns-query#dns'
proxy-server-naneserver:
proxy-server-nameserver:
- https://doh.pub/dns-query
nameserver-policy:
"geosite:cn,private":
Expand Down
37 changes: 6 additions & 31 deletions box/sing-box/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,16 @@
}
],
"rules": [
// 见 https://github.com/SagerNet/sing-box/releases/tag/v1.2.2
{
"domain_suffix": [
"节点二级域名",

"订阅二级域名"
],
"outbound": "any",
"server": "dnspod",
"disable_cache": true
},
{
"geosite": "category-ads-all",
"server": "rcode"
},
{
"geosite": [
"geolocation-!cn",
"microsoft",
"google"
],
"server": "cloudflare"
// "server": "fakedns"
},
{
"geosite": [
"cn",
Expand Down Expand Up @@ -75,7 +63,7 @@
"sniff": true,
"domain_strategy": "prefer_ipv4"
// "set_system_proxy": false
// },
},
// {
// "type": "tun",
// "tag": "tun-in",
Expand All @@ -84,7 +72,7 @@
// "inet6_address": "fdfe:dcba:9876::1/126",
// "stack": "system",
// "auto_route": true,
// "strict_route": false,
// "strict_route": true,
// "sniff": true
// },
// {
Expand All @@ -93,7 +81,7 @@
// "listen": "::",
// "listen_port": 7891,
// "sniff": true
},
// },
{
"type": "tproxy",
"tag": "tproxy-in",
Expand Down Expand Up @@ -170,20 +158,7 @@
{
"geosite": [
"apple@cn",
"category-games@cn"
],
"outbound": "direct"
},
{
"geosite": [
"geolocation-!cn",
"microsoft",
"google"
],
"outbound": "Proxy"
},
{
"geosite": [
"category-games@cn",
"cn"
],
"outbound": "direct"
Expand Down

0 comments on commit 8c65645

Please sign in to comment.