解决V2rayN-Singbox核心配置文件错误

· Special

前阵子在使用v2rayN时,手搓了一个Hysteria的配置,结果在客户端遇到以下错误:

ERROR[0000] legacy DNS servers is deprecated in sing-box 1.12.0 and will be removed in sing-box 1.14.0, checkout documentation for migration: https://sing-box.sagernet.org/migration/#migrate-to-new-dns-server-formats FATAL[0000] to continuing using this feature, set environment variable ENABLE_DEPRECATED_LEGACY_DNS_SERVERS=true

解决方法

setx ENABLE_DEPRECATED_LEGACY_DNS_SERVERS true


原理

旧版配置

{
  "address": "tcp://8.8.8.8",
  "strategy": "prefer_ipv4",
  "tag": "remote",
  "detour": "proxy"
}

新版配置

{
"type": "tcp",
"tag": "remote",
"server": "8.8.8.8",
"server_port": 53,
"detour": "proxy"
}


评论

行为验证™ 安全组件加载中...