我现在启动 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
请问这个错误是什么情况啊?
1
pptv2722 20 小时 50 分钟前 via Android 似乎是配置文件格式旧了 你可能得更新下配置文件 见 singbox 文档的 Migrate 章节
|
2
stinkytofux 20 小时 40 分钟前
我都是单独用一个 Alpine 虚拟机装 ShellCrash 做代理和网关, 路由器上的东西又多又杂, 不符合单一职责.
|