Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-08-14 18:00:04 +0300
committerJo-Philipp Wich <jo@mein.io>2019-08-14 23:58:15 +0300
commit9f032e02e466bcf03a3dae9c395316f309ab8a4e (patch)
treef286d7b031bb2eacfc4cf8848d78f90d854ef02a /applications/luci-app-firewall/htdocs
parenta4621c95201a6ac436b3cfdc9bf6ed2d2571e607 (diff)
luci-app-firewall: drop usage of getOffloadSupport()
Rely on the more generic L.hasSystemFeature() from now on. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-firewall/htdocs')
-rw-r--r--applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js
index 4d13752b3a..22f1683fe4 100644
--- a/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js
+++ b/applications/luci-app-firewall/htdocs/luci-static/resources/view/firewall/zones.js
@@ -7,12 +7,6 @@
'require tools.widgets as widgets';
return L.view.extend({
- callOffloadSupport: rpc.declare({
- object: 'luci',
- method: 'offload_support',
- expect: { offload_support: false }
- }),
-
callConntrackHelpers: rpc.declare({
object: 'luci',
method: 'conntrack_helpers',
@@ -21,14 +15,12 @@ return L.view.extend({
load: function() {
return Promise.all([
- this.callOffloadSupport(),
this.callConntrackHelpers()
]);
},
render: function(data) {
- var hasOffloading = data[0],
- ctHelpers = data[1],
+ var ctHelpers = data[0],
m, s, o, inp, out;
m = new form.Map('firewall', _('Firewall - Zone Settings'),
@@ -55,7 +47,7 @@ return L.view.extend({
/* Netfilter flow offload support */
- if (hasOffloading) {
+ if (L.hasSystemFeature('offloading')) {
s = m.section(form.TypedSection, 'defaults', _('Routing/NAT Offloading'),
_('Experimental feature. Not fully compatible with QoS/SQM.'));