mirror of
https://github.com/fscarmen/sing-box.git
synced 2026-08-10 17:55:16 +08:00
v1.3.13 feat: add explicit HTTP clients for remote rule sets
* add `http_clients` configuration for sing-box 1.14.0+ * set `route.default_http_client` for remote rule-set downloads * fix: correct Cloudflare API validation logic v1.3.13 feat: 增加远程规则集 HTTP Client 配置 * 为 sing-box 1.14.0+ 增加 `http_clients` 配置 * 为远程规则集下载设置 `route.default_http_client` * fix: 修正 Cloudflare API 判断逻辑
This commit is contained in:
@@ -218,6 +218,7 @@ EOF
|
||||
cat > ${WORK_DIR}/conf/03_route.json << EOF
|
||||
{
|
||||
"route":{
|
||||
"default_http_client": "http-client-direct",
|
||||
"rule_set":[
|
||||
{
|
||||
"tag":"geosite-openai",
|
||||
@@ -294,6 +295,17 @@ EOF
|
||||
"interval": "60m"
|
||||
}
|
||||
}
|
||||
EOF
|
||||
|
||||
# 专门给 sing-box 内部组件发 HTTP 请求用,比如这些场景会用到它:下载远程 rule_set:.srs 规则文件,ACME 申请证书,Cloudflare Origin CA 证书提供器,DERP / Tailscale 相关 HTTP 请求
|
||||
cat > ${WORK_DIR}/conf/07_http_clients.json << EOF
|
||||
{
|
||||
"http_clients": [
|
||||
{
|
||||
"tag": "http-client-direct"
|
||||
}
|
||||
]
|
||||
}
|
||||
EOF
|
||||
|
||||
# 生成 XTLS + Reality 配置
|
||||
|
||||
Reference in New Issue
Block a user