返回 AI 资讯
社区讨论LinuxDo 最新

使用v2rayN的不要轻易升级

上午看到有更新,强迫症犯了,就点击了,结果差点和L站失联 github.com/2dust/v2rayN [Bug]: v2rayN 7.24.8 + sing-box 1.14.0 启动失败:hosts dns 规则缺少 match response 已打开 09:15AM - 31 Aug 26 UTC neavo 操作系统 / v2rayN / Core 版本 Windows 11 (10.0.26200) / v2rayN 7.24.8 x64 / sing-…box 1.14.0 预期情况 v2rayN…

内容摘要

作者:#恰似你的温柔 板块:#前沿快讯 上午看到有更新,强迫症犯了,就点击了,结果差点和L站失联 github.com/2dust/v2rayN [Bug]: v2rayN 7.24.8 + sing-box 1.14.0 启动失败:hosts_dns 规则缺少 match_response 已打开 09:15AM - 31 Aug 26 UTC neavo ### 操作系统 / v2rayN / Core 版本 Windows 11 (10.0.26200) / v2rayN 7.24.8 x64 / sing-…box 1.14.0 ### 预期情况 v2rayN 正常启动 sing-box 核心并运行。 ### 实际情况 使用 sing-box 核心启动时报 FATAL,核心无法运行: v2rayN - V7.24.8 - X64 | D:\Program Files\v2rayN\ | D:\Program Files\v2rayN\v2rayN.exe | Microsoft Windows NT 10.0.26200.0 启动服务 (2026/08/31 17:10:39)... WARN0000 independent_cache DNS option is deprecated in sing-box 1.14.0 and will be removed in sing-box 1.16.0, checkout documentation for migration: https://sing-box.sagernet.org/migration/#migrate-independent-dns-cache FATAL0000 create service: initialize dns router: validate dns rule0: Response Match Fields (ip cidr, ip is private, ip accept any, response rcode, response answer, response ns, response extra) require match response to be enabled 运行 Core 失败,请查看提示信息 ### 原因分析 sing-box 1.14.0 新增校验:DNS 规则中的 Response Match Fields(`ip_cidr`、`ip_is_private`、`ip_accept_any`、`response_rcode` 等)必须开启 `match_response` 才能使用(参见 [sing-box 迁移文档](https://sing-box.sagernet.org/migration/#migrate-independent-dns-cache))。 而 v2rayN 的 `SingboxDnsService.cs` 在 `GenDnsRules()` 中无条件生成: csharp coreConfig.dns.rules.Add(new() { ip accept any = true, server = Global.SingboxHostsDNSTag }); ``` 生成的 `binConfigs/config.json` 中对应规则为: ```json { "server": "hosts dns", "ip accept any": true } 缺少 `match_response: true`,导致 sing-box 1.14.0 校验失败。 ### 复现方法 1. v2rayN 7.24.8 + sing-box 1.14.0 核心 2. 使用默认 DNS 设置(简明 DNS / 自动生成配置)启动核心 3. 报 FATAL,无法启动 ### 建议修复 在该规则中添加 `match_response = true`: csharp coreConfig.dns.rules.Add(new() { match response = true, ip accept any = true, server = Global.SingboxHostsDNSTag }); ### 临时解决方案 回退 sing-box 核心到 1.13.21 可正常使用(已验证 `sing-box check` 通过)。

资讯来源

LinuxDo

原文链接

打开原文