mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
luci-app-openvpn-server: code alignment
This commit is contained in:
parent
6ea63a0560
commit
bcc38244ea
@ -4,7 +4,7 @@ function index()
|
||||
if not nixio.fs.access("/etc/config/openvpn") then
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
entry({"admin", "vpn"}, firstchild(), "VPN", 45).dependent = false
|
||||
entry({"admin", "vpn", "openvpn-server"}, alias("admin", "vpn", "openvpn-server", "basic"), _("OpenVPN Server"), 80).dependent = true
|
||||
entry({"admin", "vpn", "openvpn-server", "basic"}, cbi("openvpn-server/basic"), _("Base Setting"), 1).leaf = true
|
||||
|
@ -2,7 +2,7 @@ mp = Map("openvpn")
|
||||
mp.title = translate("OpenVPN Server")
|
||||
mp.description = translate("An easy config OpenVPN Server Web-UI")
|
||||
|
||||
mp:section(SimpleSection).template = "openvpn-server/openvpn-server_status"
|
||||
mp:section(SimpleSection).template = "openvpn-server/openvpn-server_status"
|
||||
|
||||
s = mp:section(TypedSection, "openvpn")
|
||||
s.anonymous = true
|
||||
@ -25,13 +25,13 @@ ddns.default = "exmple.com"
|
||||
ddns.rmempty = false
|
||||
|
||||
localnet = s:option(Value, "server", translate("Client Network"))
|
||||
localnet.datatype = "string"
|
||||
localnet.description = translate("VPN Client Network IP with subnet")
|
||||
localnet.datatype = "string"
|
||||
|
||||
list = s:option(DynamicList, "push")
|
||||
list.title = translate("Client Settings")
|
||||
list.datatype = "string"
|
||||
list.description = translate("Set route 192.168.0.0 255.255.255.0 and dhcp-option DNS 192.168.0.1 base on your router")
|
||||
list.datatype = "string"
|
||||
|
||||
o = s:option(Button, "certificate", translate("OpenVPN Client config file"))
|
||||
o.inputtitle = translate("Download .ovpn file")
|
||||
|
Loading…
Reference in New Issue
Block a user