• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Revisão4ced9093b6e6b06602a16b2f22fbe08315186b03 (tree)
Hora2022-05-18 22:02:03
Autorrwalli <rwalli@gmx....>
CommiterAmadeusGhost

Mensagem de Log

Add description

Mudança Sumário

Diff

--- a/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
+++ b/protocols/luci-proto-wireguard/luasrc/model/cbi/admin_network/proto_wireguard.lua
@@ -5,7 +5,7 @@
55 local map, section, net = ...
66 local ifname = net:get_interface():name()
77 local private_key, listen_port
8-local metric, mtu, preshared_key
8+local metric, mtu, preshared_key, description
99 local peers, public_key, allowed_ips, endpoint, persistent_keepalive
1010
1111
@@ -96,6 +96,16 @@ peers.anonymous = true
9696 peers.addremove = true
9797
9898
99+description = peers:option(
100+ Value,
101+ "description",
102+ translate("Description"),
103+ translate("Optional. Description of peer."))
104+description.placeholder = "My Peer"
105+description.datatype = "string"
106+description.optional = true
107+
108+
99109 public_key = peers:option(
100110 Value,
101111 "public_key",
Show on old repository browser