fscarmen / sing-box

Sing-box 全家桶 --- 一键多协议脚本
999 stars 219 forks source link

alpine系统下无法显示订阅二维码 #72

Closed Gaslys closed 3 months ago

Gaslys commented 3 months ago

脚本更新后debian、Ubuntu系统会出现报错: /dev/fd/64: line 1784: qrencode: command not found /dev/fd/64: line 1784: qrencode: command not found /dev/fd/64: line 1894: qrencode: command not found /dev/fd/64: line 1894: qrencode: command not found 应该是因为脚本没有自动安装qrencode依赖,手动安装后可以解决。 alpine下似乎不能安装qrencode依赖,后续会使用其他方式实现显示订阅二维码吗

fscarmen commented 3 months ago

https://github.com/fscarmen/sing-box/blob/02f88c5ad3b2a1055f4b3aaa29d1782d909b9ac4/sing-box.sh#L597

这里已经处理了,根据alpine系统,安装libqrencode-tools的

fscarmen commented 3 months ago
image image
fscarmen commented 3 months ago

脚本更新后debian、Ubuntu系统会出现报错: /dev/fd/64: line 1784: qrencode: command not found /dev/fd/64: line 1784: qrencode: command not found /dev/fd/64: line 1894: qrencode: command not found /dev/fd/64: line 1894: qrencode: command not found 应该是因为脚本没有自动安装qrencode依赖,手动安装后可以解决。 alpine下似乎不能安装qrencode依赖,后续会使用其他方式实现显示订阅二维码吗

已经复现了,在 nginx 端口那里输入 n,不要订阅,这时没有对外服务的 http 服务,所以二维码也没有用,所以不安装 qrencode 依赖,也不显示了。

该 bug 已处理。

Gaslys commented 3 months ago

是的,是在不需要订阅的情况下会出现,非常感谢