• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Révision705d46b1a66b55da0bff0232c8fa54081786b067 (tree)
l'heure2022-01-20 21:57:15
AuteurJo-Philipp Wich <jo@mein...>
CommiterJo-Philipp Wich

Message de Log

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>

Change Summary

Modification

--- a/modules/luci-base/root/usr/libexec/rpcd/luci
+++ b/modules/luci-base/root/usr/libexec/rpcd/luci
@@ -209,7 +209,7 @@ local methods = {
209209 rv.firewall = fs.access("/sbin/fw3")
210210 rv.firewall4 = fs.access("/sbin/fw4")
211211 rv.opkg = fs.access("/bin/opkg")
212- rv.offloading = fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt")
212+ rv.offloading = fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt") or fs.access("/sys/module/nft_flow_offload/refcnt")
213213 rv.br2684ctl = fs.access("/usr/sbin/br2684ctl")
214214 rv.swconfig = fs.access("/sbin/swconfig")
215215 rv.odhcpd = fs.access("/usr/sbin/odhcpd")
Afficher sur ancien navigateur de dépôt.