X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-app-mwan3%2Fluasrc%2Fmodel%2Fcbi%2Fmwan%2Fglobalsconfig.lua;h=b53d288d0dbd3472a4a87f40ca9b688ba98f01b5;hp=54d20bdcb58eb1a24ad750725e3b75503b58b2ce;hb=cf1af792d6ca285fed757fa21904f635bdbfffce;hpb=2697ef81a1b395f3e0d53d8a536fb76205e60b04 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..b53d288d0 100644 --- a/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua +++ b/applications/luci-app-mwan3/luasrc/model/cbi/mwan/globalsconfig.lua @@ -14,12 +14,14 @@ $Id$ local net = require "luci.model.network".init() -m = Map("mwan3") -s = m:section(NamedSection, "globals", "globals", translate("Globals mwan3 options")) +m = Map("mwan3", translate("MWAN - Globals")) + +s = m:section(NamedSection, "globals", "globals", nil) n = s:option(ListValue, "local_source", translate("Local source interface"), - translate("Use the IP address of this interface as source IP address for traffic initiated by the router itself")) + translate("Use the IP address of this interface as source IP " .. + "address for traffic initiated by the router itself")) n:value("none") n.default = "none" for _, net in ipairs(net:get_networks()) do @@ -29,4 +31,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