From: Jo-Philipp Wich Date: Tue, 17 Jul 2018 14:18:25 +0000 (+0200) Subject: luco-proto-ipv6: allow multiple prefixes for 6in4 and dhcpv6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b8b87182f6b4de9c40be47ced6cfc9cce0eeecaa;p=oweals%2Fluci.git luco-proto-ipv6: allow multiple prefixes for 6in4 and dhcpv6 Fixes FS#1361. Signed-off-by: Jo-Philipp Wich (cherry picked from commit 60e7ea2fc8363960861a82f1e65ca4a7a1d60bfe) --- 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",