luci-base: rpc: drop offload_support call

It is superseded by the more generic getFeatures method.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-08-14 17:02:49 +02:00
parent 9f032e02e4
commit 167ad7bb12
2 changed files with 1 additions and 8 deletions

View file

@ -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")

View file

@ -43,7 +43,7 @@
"description": "Grant access to firewall procedures",
"read": {
"ubus": {
"luci": [ "conntrack_helpers", "offload_support" ]
"luci": [ "conntrack_helpers" ]
},
"uci": [ "firewall" ]
},