xiaorouji / openwrt-passwall

7.21k stars 2.65k forks source link

Xray分流无法启动 #1821

Closed nitsort closed 2 years ago

nitsort commented 2 years ago

描述bug(必填)

Xray分流无法启动,用的是Trojan-Go节点

复现步骤(必填)

  1. 选择分流节点
  2. 启动Passwall

你想要实现的目的(必填)

能正常使用分流

日志信息(必填!)

Xray 1.5.3 (Xray, Penetrates Everything.) OpenWrt (go1.17.8 linux/amd64)
A unified platform for anti-censorship.
Failed to start: main: failed to load config files: [/tmp/etc/passwall/TCP_UDP_DNS.json] > infra/conf/serial: failed to decode config: /tmp/etc/passwall/TCP_UDP_DNS.json > infra/conf/serial: failed to read config file > EOF

TCP_UDP_DNS.json 内容为空 /etc/init.d/passwall restart 执行有报错

root@OpenWrt:~# /etc/init.d/passwall restart
lua: ...sr/lib/lua/luci/model/cbi/passwall/api/gen_v2ray.lua:91: bad argument #3 to 'format' (string expected, got nil)
stack traceback:
    [C]: in function 'format'
    ...sr/lib/lua/luci/model/cbi/passwall/api/gen_v2ray.lua:91: in function 'gen_outbound'
    ...sr/lib/lua/luci/model/cbi/passwall/api/gen_v2ray.lua:376: in main chunk
    [C]: ?
/usr/share/passwall/app.sh: eval: line 228: 218.2.135.1,221.228.255.1: not found
/usr/share/passwall/app.sh: eval: line 228: /tmp/dnsmasq.d/passwall/13-shunt_host.conf: not found
...

截图

系统相关信息(必填)

刚编译的 4.51 版本

其他相关信息

xiaorouji commented 2 years ago

Fix.