From f19e2f321670ea37dd46ade5d96635014b77a299 Mon Sep 17 00:00:00 2001 From: ElonH Date: Thu, 27 Feb 2020 12:35:14 +0800 Subject: [PATCH] luci-app-qos_gargoyle: fix luci crash --- .../luasrc/model/cbi/qos_gargoyle/global.lua | 4 ++-- package/ctcgfw/qos-gargoyle/files/qos_gargoyle.conf | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/ctcgfw/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua b/package/ctcgfw/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua index 0379b4b3bd..b698590be9 100644 --- a/package/ctcgfw/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua +++ b/package/ctcgfw/luci-app-qos-gargoyle/luasrc/model/cbi/qos_gargoyle/global.lua @@ -33,10 +33,10 @@ m = Map(qos_gargoyle, translate("Gargoyle QoS"), translate("Quality of Service (QoS) provides a way to control how available bandwidth is " .. "allocated.")) -s = m:section(SimpleSection, translate("Global Settings")) +s = m:section(TypedSection, 'global', translate("Global Settings")) s.anonymous = true -o = s:option(Button, "_switch", nil, translate("QoS Switch")) +o = s:option(Button, "", translate("QoS Switch")) o.render = function(self, section, scope) if qos_enabled() then self.title = translate("Disable QoS") diff --git a/package/ctcgfw/qos-gargoyle/files/qos_gargoyle.conf b/package/ctcgfw/qos-gargoyle/files/qos_gargoyle.conf index 557ee64efc..c102193856 100644 --- a/package/ctcgfw/qos-gargoyle/files/qos_gargoyle.conf +++ b/package/ctcgfw/qos-gargoyle/files/qos_gargoyle.conf @@ -1,4 +1,6 @@ +config global 'global' + config upload 'upload' option default_class 'uclass_2'