From 705d46b1a66b55da0bff0232c8fa54081786b067 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 20 Jan 2022 13:55:53 +0100 Subject: 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 --- modules/luci-base/root/usr/libexec/rpcd/luci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/luci-base/root') 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") -- cgit v1.2.3