xiaorouji / openwrt-passwall

7.19k stars 2.65k forks source link

安装过程中出现依赖异常日志,混淆用户 #3251

Closed jjm2473 closed 5 months ago

jjm2473 commented 5 months ago
2024-01-13 23:43:38: iptables透明代理基础依赖 iptables-mod-tproxy 未安装...
2024-01-13 23:43:38: iptables透明代理基础依赖 iptables-mod-socket 未安装...
2024-01-13 23:43:38: iptables透明代理基础依赖 iptables-mod-iprange 未安装...
2024-01-13 23:43:38: iptables透明代理基础依赖 iptables-mod-conntrack-extra 未安装...
2024-01-13 23:43:38: iptables透明代理基础依赖 kmod-ipt-nat 未安装...

这个错误日志是passwall还在安装过程中出现的,安装过程中,opkg命令是被锁的,没法执行。 这一行代码在安装过程中执行了,opkg肯定会调用失败 https://github.com/xiaorouji/openwrt-passwall/blob/51c87824c27957896e83deaa6faf9275214f6284/luci-app-passwall/root/usr/share/passwall/app.sh#L211

Originally posted by @jjm2473 in https://github.com/xiaorouji/openwrt-passwall/discussions/2897#discussioncomment-8129611

jjm2473 commented 5 months ago

建议修改成不依赖opkg判断软件包是否存在,例如[ -s /usr/lib/opkg/info/kmod-ipt-nat.control ]