From: Florian Eckert Date: Mon, 14 Aug 2017 08:08:28 +0000 (+0200) Subject: luci-app-mwan3: add config for mwan3 mask X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=refs%2Fpull%2F1308%2Fhead;p=oweals%2Fluci.git luci-app-mwan3: add config for mwan3 mask Add global config option to edit the mwan3 firewall mask. Signed-off-by: Florian Eckert --- 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 0x")) +mask.datatype = "hex(4)" +mask.default = "0xff00" + return m