summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/root/usr/libexec
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2022-01-20 13:55:53 +0100
committerJo-Philipp Wich <jo@mein.io>2022-01-20 13:57:15 +0100
commit705d46b1a66b55da0bff0232c8fa54081786b067 (patch)
tree0fe1b5abad668fe5a977fb9e2a67e67b5baeae56 /modules/luci-base/root/usr/libexec
parenta6b8a37bbd678d18666aca3d1601c209ca2d6451 (diff)
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>
Diffstat (limited to 'modules/luci-base/root/usr/libexec')
-rwxr-xr-xmodules/luci-base/root/usr/libexec/rpcd/luci2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci
index fbfc3c7a59..1938e3e966 100755
--- a/modules/luci-base/root/usr/libexec/rpcd/luci
+++ b/modules/luci-base/root/usr/libexec/rpcd/luci
@@ -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")