From 167ad7bb120bc30b186a70b66b0664434e54bc1b Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 14 Aug 2019 17:02:49 +0200 Subject: [PATCH] luci-base: rpc: drop offload_support call It is superseded by the more generic getFeatures method. Signed-off-by: Jo-Philipp Wich --- modules/luci-base/root/usr/libexec/rpcd/luci | 7 ------- modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/modules/luci-base/root/usr/libexec/rpcd/luci b/modules/luci-base/root/usr/libexec/rpcd/luci index d2e90bc35d..7eac09214a 100755 --- a/modules/luci-base/root/usr/libexec/rpcd/luci +++ b/modules/luci-base/root/usr/libexec/rpcd/luci @@ -280,13 +280,6 @@ local methods = { end }, - offload_support = { - call = function() - local fs = require "nixio.fs" - return { offload_support = not not fs.access("/sys/module/xt_FLOWOFFLOAD/refcnt") } - end - }, - conntrack_helpers = { call = function() local fd = io.open("/usr/share/fw3/helpers.conf", "r") diff --git a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json index 5d08a4eab8..fb7be94cf4 100644 --- a/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json +++ b/modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json @@ -43,7 +43,7 @@ "description": "Grant access to firewall procedures", "read": { "ubus": { - "luci": [ "conntrack_helpers", "offload_support" ] + "luci": [ "conntrack_helpers" ] }, "uci": [ "firewall" ] }, -- 2.30.2