Skip to content

Commit a2d6b40

Browse files
committed
chore(config): 迁移 sing-box 1.14 废弃配置
- 移除 DNS 配置中已废弃的 independent_cache - 将远程规则集 download_detour 迁移为共享 http_clients - 新增 07_http_clients.json 并通过 route.default_http_client 指定规则集下载客户端
1 parent 5bbbeaf commit a2d6b40

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/module/config/singbox/confdir/03_dns.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
"server": "remote"
8181
}
8282
],
83-
"independent_cache": true,
8483
"strategy": "ipv4_only"
8584
}
8685
}

src/module/config/singbox/confdir/06_route.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"route": {
33
"default_domain_resolver": "ali",
4+
"default_http_client": "rule-set-download",
45
"rule_set": [
56
{
67
"tag": "block",
@@ -25,7 +26,6 @@
2526
"type": "remote",
2627
"format": "source",
2728
"url": "https://raw.githubusercontent.com/TG-Twilight/AWAvenue-Ads-Rule/refs/heads/main/Filters/AWAvenue-Ads-Rule-Singbox.json",
28-
"download_detour": "Proxy",
2929
"update_interval": "24h",
3030
"path": "./source/AWAvenue.json"
3131
},
@@ -34,7 +34,6 @@
3434
"type": "remote",
3535
"format": "binary",
3636
"url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/singbox_rule_set/geosite-category-ads-all.srs",
37-
"download_detour": "Proxy",
3837
"update_interval": "24h",
3938
"path": "./source/category-ads-all.srs"
4039
},
@@ -43,7 +42,6 @@
4342
"type": "remote",
4443
"format": "binary",
4544
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-alibaba.srs",
46-
"download_detour": "Proxy",
4745
"update_interval": "24h",
4846
"path": "./source/alibaba.srs"
4947
},
@@ -52,7 +50,6 @@
5250
"type": "remote",
5351
"format": "binary",
5452
"url": "https://raw.githubusercontent.com/SagerNet/sing-geosite/rule-set/geosite-category-games@cn.srs",
55-
"download_detour": "Proxy",
5653
"update_interval": "24h",
5754
"path": "./source/category-games@cn.srs"
5855
},
@@ -61,7 +58,6 @@
6158
"type": "remote",
6259
"format": "binary",
6360
"url": "https://raw.githubusercontent.com/CHIZI-0618/v2ray-rules-dat/release/singbox_rule_set/geosite-cn.srs",
64-
"download_detour": "Proxy",
6561
"update_interval": "24h",
6662
"path": "./source/cn.srs"
6763
},
@@ -70,7 +66,6 @@
7066
"type": "remote",
7167
"format": "binary",
7268
"url": "https://raw.githubusercontent.com/MetaCubeX/meta-rules-dat/sing/geo/geoip/cn.srs",
73-
"download_detour": "Proxy",
7469
"update_interval": "10d",
7570
"path": "./source/cn-ip.srs"
7671
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"http_clients": [
3+
{
4+
"tag": "rule-set-download",
5+
"detour": "Proxy"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)