From b68350bea9b1de85f1381cf11cc370837a69a09a Mon Sep 17 00:00:00 2001 From: "Ycarus (Yannick Chabanois)" Date: Sat, 24 Aug 2019 21:30:32 +0200 Subject: [PATCH] Use listvalue --- luci-app-omr-bypass/luasrc/model/cbi/omr-bypass.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/luci-app-omr-bypass/luasrc/model/cbi/omr-bypass.lua b/luci-app-omr-bypass/luasrc/model/cbi/omr-bypass.lua index 2f2be2c14..ac4b84fbd 100644 --- a/luci-app-omr-bypass/luasrc/model/cbi/omr-bypass.lua +++ b/luci-app-omr-bypass/luasrc/model/cbi/omr-bypass.lua @@ -18,7 +18,7 @@ hn.datatype = "hostname" hn.optional = false hn.rmempty = true -ifd = s:option(Value, "interface", translate("Interface")) +ifd = s:option(ListValue, "interface", translate("Interface")) ifd.rmempty = true s = m:section(TypedSection, "ips", translate("IPs and Networks")) @@ -31,7 +31,7 @@ ip.datatype = "ipaddr" ip.rmempty = true ip.optional = false -ifi = s:option(Value, "interface", translate("Interface")) +ifi = s:option(ListValue, "interface", translate("Interface")) ifi.rmempty = true s = m:section(TypedSection, "macs", translate("MAC-Address")) @@ -50,7 +50,7 @@ sys.net.host_hints(function(m, v4, v6, name) end end) -ifm = s:option(Value, "interface", translate("Interface")) +ifm = s:option(ListValue, "interface", translate("Interface")) ifm.rmempty = true s = m:section(TypedSection, "lan_ip", translate("Source lan IP address or network")) @@ -63,7 +63,7 @@ ip.datatype = "ipaddr" ip.rmempty = true ip.optional = false -ifl = s:option(Value, "interface", translate("Interface")) +ifl = s:option(ListValue, "interface", translate("Interface")) ifl.rmempty = true s = m:section(TypedSection, "asns", translate("ASN")) @@ -75,7 +75,7 @@ asn = s:option(Value, "asn", translate("ASN")) asn.rmempty = true asn.optional = false -ifa = s:option(Value, "interface", translate("Interface")) +ifa = s:option(ListValue, "interface", translate("Interface")) ifa.rmempty = true s = m:section(TypedSection, "dpis", translate("Protocols")) @@ -83,7 +83,7 @@ s.addremove = true s.anonymous = true s.template = "cbi/tblsection" -dpi = s:option(Value, "proto", translate("Protocol")) +dpi = s:option(ListValue, "proto", translate("Protocol")) dpi.rmempty = true dpi.optional = false local xt_ndpi_available = nixio.fs.access("/proc/net/xt_ndpi/proto")