summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-11-18 13:34:24 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2015-12-02 20:56:11 +0800
commit09768ed74596e70ab7270a6eb7c96fa4afd1d85d (patch)
tree8100b29942dfa623cc2ef1a92b43df637fe93d35
parent862b84feb2bc860c049b4b6fa990f92291cb4728 (diff)
luci-proto-ppp: l2tp: allow specifying port in "server" option
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
index 523ef1bc6..5e8b3fcaa 100644
--- a/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
+++ b/protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua
@@ -8,7 +8,7 @@ local ipv6, defaultroute, metric, peerdns, dns, mtu
server = section:taboption("general", Value, "server", translate("L2TP Server"))
-server.datatype = "host"
+server.datatype = "or(host, hostport)"
username = section:taboption("general", Value, "username", translate("PAP/CHAP username"))