luci-base: properly detect flow offloading capabilities with nftables
When the system is running with nftables instead of iptables, the proprietary XT_FLOWOFFLOAD module will not be present, query the nft equivalent instead. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a6b8a37bbd
commit
705d46b1a6
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ local methods = {
|
|||
rv.firewall = fs.access("/sbin/fw3")
|
||||
rv.firewall4 = fs.access("/sbin/fw4")
|
||||
rv.opkg = fs.access("/bin/opkg")
|
||||
rv.offloading = fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt")
|
||||
rv.offloading = fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt") or fs.access("/sys/module/nft_flow_offload/refcnt")
|
||||
rv.br2684ctl = fs.access("/usr/sbin/br2684ctl")
|
||||
rv.swconfig = fs.access("/sbin/swconfig")
|
||||
rv.odhcpd = fs.access("/usr/sbin/odhcpd")
|
||||
|
|
Loading…
Reference in a new issue