Merge pull request #5663 from qiuzi/master

luci-app-nft-qos: fix lua trace by moving limit_mac_enabled option.
This commit is contained in:
Florian Eckert 2022-01-26 16:54:14 +01:00 committed by GitHub
commit d40d1841f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,6 +99,13 @@ o = s:taboption("limit", DynamicList, "limit_whitelist", translate("White List f
o.datatype = "ipaddr"
o:depends("limit_enable","1")
--
-- limit speed by mac address
--
o = s:taboption("limitmac", Flag, "limit_mac_enable", translate("Limit Enable"), translate("Enable Limit Rate Feature"))
o.default = limit_mac_enable or o.enabled
o.rmempty = false
--
-- Priority
--
@ -224,13 +231,6 @@ if enable_priority == "1" then
end
--
-- limit speed by mac address
--
o = s:taboption("limitmac", Flag, "limit_mac_enable", translate("Limit Enable"), translate("Enable Limit Rate Feature"))
o.default = limit_mac_enable or o.enabled
o.rmempty = false
--
-- Static By Mac Address
--
@ -273,4 +273,4 @@ if limit_mac_enable == "1" then
end
return m
return m