Files
2026-09-01 02:00:56 +08:00

49 lines
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# singbox 弃用警告解析
弹窗提示:
>
> legacy `download_detour` remote ruleset option 已在 singbox 1.14.0 中被弃用,且将在 singbox 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。