xiaorouji / openwrt-passwall

7.02k stars 2.62k forks source link

[Bug]: passwall server功能无法加载防火墙规则 #2161

Closed WROIATE closed 1 year ago

WROIATE commented 1 year ago

描述您遇到的bug

目前在 server/api/app.lua 文件中,判断防火墙类型的代码为 local nft_flag = sys.exec("command -v fw4") and "1" or "0" 这个代码测试了下返回值总是1,导致之后server加载防火墙会按照fw4的逻辑 image image

复现此Bug的步骤

开启passwall server功能即可复现

您想要实现的目的

能够正常分类防火墙类型

日志信息

暂无

截图

No response

系统相关信息

version: 4.55-2 openwrt: OpenWrt R22.10.20 / LuCI Master (git-22.289.58375-2a380a3)

其他信息

No response

ShanStone commented 1 year ago

已修复,试一下最新源码

WROIATE commented 1 year ago

已修复,试一下最新源码

测试正常,关闭该issue