mirror of
https://github.com/openwrt/luci.git
synced 2026-08-29 06:22:49 +04:00
Merge pull request #565 from yousong/l2tp-server
Allow host:port value for l2tp `server` option
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
<%- end -%>');
|
<%- end -%>');
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<% if self.datatype then -%>
|
<% if self.datatype then -%>
|
||||||
cbi_validate_field('<%=cbid%>', <%=tostring((self.optional or self.rmempty) == true)%>, '<%=self.datatype:gsub("'", "\\'")%>');
|
cbi_validate_field('<%=cbid%>', <%=tostring((self.optional or self.rmempty) == true)%>, '<%=self.datatype:gsub("\\", "\\\\"):gsub("'", "\\'")%>');
|
||||||
<%- end %>
|
<%- end %>
|
||||||
//]]></script>
|
//]]></script>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ local ipv6, defaultroute, metric, peerdns, dns, mtu
|
|||||||
|
|
||||||
|
|
||||||
server = section:taboption("general", Value, "server", translate("L2TP Server"))
|
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"))
|
username = section:taboption("general", Value, "username", translate("PAP/CHAP username"))
|
||||||
|
|||||||
Reference in New Issue
Block a user