summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2016-01-10 13:19:34 +0100
committerJo-Philipp Wich <jow@openwrt.org>2016-01-10 13:19:34 +0100
commit6619e66fc9de32e7bf911b929e320ab17a414697 (patch)
tree9d3a22346b96e03167ced15667ad5fc1caa23ced
parent03a8393de0b096b8259bd12d2130fc81468b465f (diff)
luci-proto-ipv6: allow hostnames for dslite peer addresses (#621)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r--protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
index 9069ff0870..eca9750adb 100644
--- a/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
+++ b/protocols/luci-proto-ipv6/luasrc/model/cbi/admin_network/proto_dslite.lua
@@ -14,7 +14,7 @@ peeraddr = section:taboption("general", Value, "peeraddr",
translate("DS-Lite AFTR address"))
peeraddr.rmempty = false
-peeraddr.datatype = "ip6addr"
+peeraddr.datatype = "or(hostname,ip6addr)"
ip6addr = section:taboption("general", Value, "ip6addr",
translate("Local IPv6 address"),