diff options
author | Lopot li <gxfclql@gmail.com> | 2022-01-26 10:40:00 +0000 |
---|---|---|
committer | Lopot li <gxfclql@gmail.com> | 2022-01-26 10:40:00 +0000 |
commit | f30b67340ffa6d888076f4f806709b5f86b7cf2e (patch) | |
tree | 0fb63df3ab694301f5d9272dd164738024c62fae /applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos | |
parent | 850538c1fff2b193f0c55b7c21cac832f370e132 (diff) |
luci-app-nft-qos: fix lua trace by moving limit_mac_enabled option.
Signed-off-by: Lopot li <gxfclql@gmail.com>
Diffstat (limited to 'applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos')
-rw-r--r-- | applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua b/applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua index b089433d9b..9040967831 100644 --- a/applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua +++ b/applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua @@ -100,6 +100,13 @@ 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 -- o = s:taboption("priority", Flag, "priority_enable", translate("Enable Traffic Priority"), translate("Enable this feature")) @@ -225,13 +232,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 -- if limit_mac_enable == "1" then @@ -273,4 +273,4 @@ if limit_mac_enable == "1" then end -return m +return m
\ No newline at end of file |