From de5f413ae331485f6ddddf08d6c428403accaee3 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 Aug 2008 12:29:59 +0000 Subject: [PATCH] Upstream compatibility --- applications/luci-fw/luasrc/model/cbi/luci_fw/miniportfw.lua | 2 +- applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/miniportfw.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/miniportfw.lua index 44a739185..09806e67a 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/miniportfw.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/miniportfw.lua @@ -26,7 +26,7 @@ s.anonymous = true name = s:option(Value, "_name", translate("name"), translate("cbi_optional")) name.size = 10 -proto = s:option(ListValue, "protocol", translate("protocol")) +proto = s:option(ListValue, "proto", translate("protocol")) proto:value("tcp", "TCP") proto:value("udp", "UDP") diff --git a/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua b/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua index 72ff54642..314dd418e 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/portfw.lua @@ -30,7 +30,7 @@ luci.model.uci.cursor():foreach("firewall", "zone", iface:value(section.name) end) -proto = s:option(ListValue, "protocol", translate("protocol")) +proto = s:option(ListValue, "proto", translate("protocol")) proto:value("tcp", "TCP") proto:value("udp", "UDP") -- 2.25.1