From 37830bc23207eca02b9280cbbe1d56230f8eb05a Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Thu, 8 Jan 2009 21:18:35 +0000 Subject: [PATCH] Make protocol selection in Firewall and QoS a combobox closes #29 --- applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua | 2 +- applications/luci-qos/luasrc/model/cbi/qos/qos.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 d8fe59c9b..72a36f927 100644 --- a/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua +++ b/applications/luci-fw/luasrc/model/cbi/luci_fw/trule.lua @@ -39,7 +39,7 @@ luci.model.uci.cursor():foreach("firewall", "zone", oface:value(section.name) end) -proto = s:option(ListValue, "proto", translate("protocol")) +proto = s:option(Value, "proto", translate("protocol")) proto.optional = true proto:value("") proto:value("tcpudp", "TCP+UDP") diff --git a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua index e051347ab..707d98a7b 100644 --- a/applications/luci-qos/luasrc/model/cbi/qos/qos.lua +++ b/applications/luci-qos/luasrc/model/cbi/qos/qos.lua @@ -73,7 +73,7 @@ p2p:value("gnu", "Gnutella") p2p:value("kazaa", "Kazaa") p2p.rmempty = true -p = s:option(ListValue, "proto", translate("protocol")) +p = s:option(Value, "proto", translate("protocol")) p:value("", translate("all")) p:value("tcp", "TCP") p:value("udp", "UDP") -- 2.11.0