添加 singbox/1.0.MD
This commit is contained in:
@@ -0,0 +1,49 @@
|
|||||||
|
# sing‑box 弃用警告解析
|
||||||
|
|
||||||
|
弹窗提示:
|
||||||
|
|
||||||
|
>
|
||||||
|
> legacy `download_detour` remote rule‑set option 已在 sing‑box 1.14.0 中被弃用,且将在 sing‑box 1.16.0 中被移除sing-box。
|
||||||
|
|
||||||
|
### 原因
|
||||||
|
|
||||||
|
你的订阅配置里,**远程规则集(rule‑set)使用了旧字段 `download_detour`**,这个字段在 1.14 版本标记废弃,到 1.16 版本内核会直接不识别,配置就会失效sing-box。
|
||||||
|
官方替代:把 `download_detour` 替换为 `http_client` 配置项sing-box。
|
||||||
|
|
||||||
|
### 两种处理方案
|
||||||
|
|
||||||
|
#### 方案 1(最简单,绝大多数人用)
|
||||||
|
|
||||||
|
>
|
||||||
|
> 弹窗提示原文:**请联系您的配置提供者以更新配置**
|
||||||
|
|
||||||
|
- 这个是订阅生成方的模板配置老旧,**你本地修改订阅内容会被下次远程更新覆盖**。直接让订阅作者更新 sing‑box 配置模板,移除旧 `download_detour`,改用 `http_client`,更新订阅链接即可。
|
||||||
|
- 你点「好」可以关掉弹窗,**当前版本 1.14 还能继续工作,只是警告,不会立刻失效;升级到 1.16 内核就会报错无法启动**。
|
||||||
|
|
||||||
|
#### 方案 2:如果你是手动编辑配置(裸配置)
|
||||||
|
|
||||||
|
##### ❌旧写法(会报警告)
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"tag": "geosite",
|
||||||
|
"type": "remote",
|
||||||
|
"download_detour": "direct",
|
||||||
|
"url": "https://xxx"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
##### ✅新写法(消除警告)
|
||||||
|
|
||||||
|
```
|
||||||
|
{
|
||||||
|
"tag": "geosite",
|
||||||
|
"type": "remote",
|
||||||
|
"http_client": {
|
||||||
|
"detour": "direct"
|
||||||
|
},
|
||||||
|
"url": "https://xxx"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
把原来的 `download_detour` 整行删掉,替换嵌套的 `http_client.detour`,填入你原来的出站标签(direct 或者你的代理标签)sing-box。
|
||||||
Reference in New Issue
Block a user