summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2017-08-14 10:08:28 +0200
committerFlorian Eckert <fe@dev.tdt.de>2017-08-16 14:51:55 +0200
commit6c4053066a56e85b3d2420d1183916598cdcd400 (patch)
tree4ae9aa70dc535d2434757614a7e115335b37beb4 /applications
parent10992d6b10559daa792bcd7609eb6929d4fe3692 (diff)
luci-app-mwan3: add config for mwan3 mask
Add global config option to edit the mwan3 firewall mask. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
index 54d20bdcb..919ed46cd 100644
--- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
+++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua
@@ -29,4 +29,12 @@ for _, net in ipairs(net:get_networks()) do
end
n.rmempty = false
+mask = s:option(
+ Value,
+ "mmx_mask",
+ translate("Firewall mask"),
+ translate("Enter value in hex, starting with <code>0x</code>"))
+mask.datatype = "hex(4)"
+mask.default = "0xff00"
+
return m