luci-app-nft-qos: fix lua trace by moving limit_mac_enabled option. 5663/head
authorLopot li <gxfclql@gmail.com>
Wed, 26 Jan 2022 10:40:00 +0000 (10:40 +0000)
committerLopot li <gxfclql@gmail.com>
Wed, 26 Jan 2022 10:40:00 +0000 (10:40 +0000)
Signed-off-by: Lopot li <gxfclql@gmail.com>
applications/luci-app-nft-qos/luasrc/model/cbi/nft-qos/nft-qos.lua

index b089433d9b9c57bf7e86e86b4adbdaca2cbb06cc..904096783154ede96c33decb90655351960f8fde 100644 (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
\ No newline at end of file