GoForum🌐 V2EX

请问下使用 ShellCrash(with SingboxR)这类在软路由中安装 clash 进行科学上网的大佬

BraveXaiver · 2026-03-01 14:52 · 0 次点赞 · 0 条回复

我现在启动 ShellCrash 遇到这个错误:

FATAL[0000] decode config at /tmp/ShellCrash/jsons/add_hosts.json: dns.servers[0].type: json: unknown field “type”

这是 add_hosts.json 文件:

{
  "dns": {
    "servers": [
      {
        "type": "hosts",
        "tag": "hosts",
        "path": [
          "/data/etc/custom_hosts",
          "/root/.hosts",
		  "/etc/hosts"
        ],
        "predefined": {
          "localhost": [
            "127.0.0.1",
            "::1"
          ],
          "time.android.com": "203.107.6.88",
          "time.facebook.com": "203.107.6.88"
        }
      }
	],
    "rules": [
      {
        "ip_accept_any": true,
        "server": "hosts"
      }
	]}
}

这是我当前的内核设置:

当前目录(/data/ShellCrash)剩余空间:18.4M
-----------------------------------------------
 1 更新管理脚本    1.9.4release > 1.9.4release 
 2 切换内核文件    1.13.0 > 1.13.0
 3 更新数据库文件       > 20260227
 4 安装本地 Dashboard 面板
 5 安装/更新本地根证书文件
 6 查看 PAC 自动代理配置
-----------------------------------------------
 7 切换安装源及安装版本
 8 配置自动更新
 9 卸载 ShellCrash
-----------------------------------------------
 99 鸣谢!
-----------------------------------------------
 0 返回上级菜单
-----------------------------------------------
请输入对应数字 > 2
-----------------------------------------------
当前内核:singboxr 1.13.0
当前系统处理器架构:arm64 

请问这个错误是什么情况啊?

0 条回复
添加回复
你还需要 登录 后发表回复

登录后可发帖和回复

登录 注册
主题信息
作者: BraveXaiver
发布: 2026-03-01
点赞: 0
回复: 0