luci-mod-status: Fix legacy rule detection false positive
authorTokisaki-Galaxy <starmaster@outlook.sg>
Tue, 7 Oct 2025 06:40:03 +0000 (14:40 +0800)
committerPaul Donald <newtwen+github@gmail.com>
Tue, 25 Nov 2025 20:55:25 +0000 (21:55 +0100)
commit63d55a7ec190f71f7027cd450e78e663ff987cb7
treea47f4228d2338e0f29cf9ca82781e786757867a6
parent805b2db67012ee76ea8baf57cf83c4dc31b72832
luci-mod-status: Fix legacy rule detection false positive

Refine legacy rule detection to avoid false positives generated by the
iptables-nft compatibility layer on fw4 systems.

The logic now prioritizes `iptables-legacy-save` for accuracy, while
retaining `iptables-save` as a fallback to ensure backward
compatibility with fw3.

Signed-off-by: Tokisaki-Galaxy <starmaster@outlook.sg>
modules/luci-mod-status/Makefile
modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js