From 8862217234bfc8213572cefb0e4be4216f4f48b1 Mon Sep 17 00:00:00 2001 From: salem <77879189@qq.com> Date: Tue, 1 Sep 2026 02:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20singbox/1.0.MD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- singbox/1.0.MD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 singbox/1.0.MD diff --git a/singbox/1.0.MD b/singbox/1.0.MD new file mode 100644 index 0000000..92defa5 --- /dev/null +++ b/singbox/1.0.MD @@ -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。 \ No newline at end of file