update default.sing-box.json

migrate singbox configuration to v1.9.0
This commit is contained in:
xboard 2024-06-10 12:27:13 +08:00
parent cd1bd1109c
commit 81be6f375b

View File

@ -5,11 +5,6 @@
"outbound": ["any"],
"server": "local"
},
{
"disable_cache": false,
"geosite": ["category-ads-all"],
"server": "block"
},
{
"clash_mode": "global",
"server": "remote"
@ -19,7 +14,7 @@
"server": "local"
},
{
"geosite": "cn",
"rule_set": ["geosite-cn"],
"server": "local"
}
],
@ -42,9 +37,11 @@
"strategy": "prefer_ipv4"
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"secret": ""
"cache_file": {
"enabled": true,
"path": "cache.db",
"cache_id": "cache_db",
"store_fakeip": true
}
},
"inbounds": [
@ -101,10 +98,6 @@
"route": {
"auto_detect_interface": true,
"rules": [
{
"geosite": "category-ads-all",
"outbound": "block"
},
{
"outbound": "dns-out",
"protocol": "dns"
@ -118,13 +111,29 @@
"outbound": "节点选择"
},
{
"geoip": ["cn", "private"],
"ip_is_private": true,
"outbound": "direct"
},
{
"geosite": "cn",
"rule_set": ["geosite-cn", "geoip-cn"],
"outbound": "direct"
}
],
"rule_set": [
{
"tag": "geosite-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-cn.srs",
"download_detour": "节点选择"
},
{
"tag": "geoip-cn",
"type": "remote",
"format": "binary",
"url": "https://raw.githubusercontent.com/SagerNet/sing-geoip/rule-set/geoip-cn.srs",
"download_detour": "节点选择"
}
]
}
}