X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=applications%2Fluci-fw%2Fluasrc%2Fmodel%2Fcbi%2Fluci_fw%2Ftrule.lua;fp=applications%2Fluci-fw%2Fluasrc%2Fmodel%2Fcbi%2Fluci_fw%2Ftrule.lua;h=fa5b44e79eb44ddcdfc0b0a7136b2f18acb76771;hp=2538c1be4047b48d8fc3adcc0e2b25e87fbee4fd;hb=5a40e6f1c00013a59ba8655708bc316398746ad5;hpb=684fa2052592e3efd5912599f242c79975ce9796 diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua index 2538c1be4..fa5b44e79 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua @@ -25,12 +25,12 @@ back.titleref = luci.dispatcher.build_url("admin", "network", "firewall", "traff name = s:option(Value, "_name", translate("name")..translate("cbi_optional")) name.rmempty = true -iface = s:option(ListValue, "src", translate("firewall_rule_src")) +iface = s:option(ListValue, "src", translate("fw_src")) iface.rmempty = true -oface = s:option(ListValue, "dest", translate("firewall_rule_dest")) -oface:value("") -oface.optional = true +oface = s:option(ListValue, "dest", translate("fw_dest")) +oface:value("", translate("device", "device")) +oface.rmempty = true luci.model.uci.cursor():foreach("firewall", "zone", function (section)