From 60e7ea2fc8363960861a82f1e65ca4a7a1d60bfe Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 17 Jul 2018 16:18:25 +0200 Subject: [PATCH] luco-proto-ipv6: allow multiple prefixes for 6in4 and dhcpv6 Fixes FS#1361. Signed-off-by: Jo-Philipp Wich --- .../luasrc/model/cbi/admin_network/proto_6in4.lua | 2 +- .../luasrc/model/cbi/admin_network/proto_dhcpv6.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua index 16245b80e..3c9f41f6b 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_6in4.lua @@ -33,7 +33,7 @@ local ip6prefix = s:taboption("general", Value, "ip6prefix", translate("IPv6 routed prefix"), translate("This is the prefix routed to you by the tunnel broker for use by clients")) -ip6prefix.datatype = "ip6addr" +ip6prefix.datatype = "list(ip6addr)" local update = section:taboption("general", Flag, "_update", diff --git a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua index 76caedcb3..49281ee41 100644 --- a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua +++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dhcpv6.lua @@ -38,7 +38,7 @@ o.default = o.enabled o = section:taboption("advanced", Value, "ip6prefix", translate("Custom delegated IPv6-prefix")) -o.dataype = "ip6addr" +o.dataype = "list(ip6addr)" o = section:taboption("advanced", DynamicList, "dns", -- 2.25.1