Merge pull request #1944 from rwalli/patch-1

luci-proto-wireguard: description field
This commit is contained in:
Dirk Brenken 2018-07-09 07:51:20 +02:00 committed by GitHub
commit bce7543d8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
local map, section, net = ...
local ifname = net:get_interface():name()
local private_key, listen_port
local metric, mtu, preshared_key
local metric, mtu, preshared_key, description
local peers, public_key, allowed_ips, endpoint, persistent_keepalive
@ -96,6 +96,16 @@ peers.anonymous = true
peers.addremove = true
description = peers:option(
Value,
"description",
translate("Description"),
translate("Optional. Description of peer."))
description.placeholder = "My Peer"
description.datatype = "string"
description.optional = true
public_key = peers:option(
Value,
"public_key",