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

1 天前
 BraveXaiver

我现在启动 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 

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

480 次点击
所在节点    问与答
2 条回复
pptv2722
1 天前
似乎是配置文件格式旧了 你可能得更新下配置文件 见 singbox 文档的 Migrate 章节
stinkytofux
1 天前
我都是单独用一个 Alpine 虚拟机装 ShellCrash 做代理和网关, 路由器上的东西又多又杂, 不符合单一职责.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1194977

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX