From 09768ed74596e70ab7270a6eb7c96fa4afd1d85d Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Wed, 18 Nov 2015 13:34:24 +0800 Subject: luci-proto-ppp: l2tp: allow specifying port in "server" option Signed-off-by: Yousong Zhou --- protocols/luci-proto-ppp/luasrc/model/cbi/admin_network/proto_l2tp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/luci-proto-ppp') 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 523ef1bc6f..5e8b3fcaae 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")) -- cgit v1.2.3