xiaorouji / openwrt-passwall

7.21k stars 2.65k forks source link

[Bug]: nftset typo error #2578

Closed ecrasy closed 1 year ago

ecrasy commented 1 year ago

描述您遇到的bug

dnsmasq 日志: dnsmasq[1]: nftset inet fw4 passwall_vpsiplist Error: No such file or directory; did you mean set ‘passwall_vpslist’ in table inet ‘fw4’?

查看代码的确出现这个typo错误:

$: grep -irn 'passwall_vpslist'
luci-app-passwall/root/usr/share/passwall/iptables.sh:6:   IPSET_VPSLIST="passwall_vpslist"
luci-app-passwall/root/usr/share/passwall/iptables.sh:15:   IPSET_VPSLIST6="passwall_vpslist6"
luci-app-passwall/root/usr/share/passwall/nftables.sh:6:   NFTSET_VPSLIST="passwall_vpslist"
luci-app-passwall/root/usr/share/passwall/nftables.sh:15:   NFTSET_VPSLIST6="passwall_vpslist6"
$: grep -irn 'passwall_vpsiplist'
luci-app-passwall/root/usr/share/passwall/helper_dnsmasq_add.lua:200:   set_domain_ipset(address, setflag_4 .. "passwall_vpsiplist," .. setflag_6 .. "passwall_vpsiplist6")

复现此Bug的步骤

系统日志中可见

您想要实现的目的

修复该日志提示的错误

日志信息

dnsmasq[1]: nftset inet fw4 passwall_vpsiplist Error: No such file or directory; did you mean set ‘passwall_vpslist’ in table inet ‘fw4’?

截图

No response

系统相关信息

其他信息

No response

ShanStone commented 1 year ago

fix