root/luci/trunk/protocols/ppp/luasrc/model/cbi/admin_network/proto_pptp.lua @ 8774

Revision 8774, 1.5 KB (checked in by jow, 11 months ago)

protocols/ppp: remove obsolete pptp buffering option

Line 
1--[[
2LuCI - Lua Configuration Interface
3
4Copyright 2011-2012 Jo-Philipp Wich <xm@subsignal.org>
5
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11]]--
12
13local map, section, net = ...
14
15local server, username, password
16local defaultroute, metric, peerdns, dns
17
18
19server = section:taboption("general", Value, "server", translate("VPN Server"))
20server.datatype = "host"
21
22
23username = section:taboption("general", Value, "username", translate("PAP/CHAP username"))
24
25
26password = section:taboption("general", Value, "password", translate("PAP/CHAP password"))
27password.password = true
28
29
30defaultroute = section:taboption("advanced", Flag, "defaultroute",
31    translate("Use default gateway"),
32    translate("If unchecked, no default route is configured"))
33
34defaultroute.default = defaultroute.enabled
35
36
37metric = section:taboption("advanced", Value, "metric",
38    translate("Use gateway metric"))
39
40metric.placeholder = "0"
41metric.datatype    = "uinteger"
42metric:depends("defaultroute", defaultroute.enabled)
43
44
45peerdns = section:taboption("advanced", Flag, "peerdns",
46    translate("Use DNS servers advertised by peer"),
47    translate("If unchecked, the advertised DNS server addresses are ignored"))
48
49peerdns.default = peerdns.enabled
50
51
52dns = section:taboption("advanced", DynamicList, "dns",
53    translate("Use custom DNS servers"))
54
55dns:depends("peerdns", "")
56dns.datatype = "ipaddr"
57dns.cast     = "string"
Note: See TracBrowser for help on using the browser.