mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-06 00:37:24 +03:00
Support for notes about clients (#527)
This commit is contained in:
parent
73108f7f21
commit
ecea82d172
7 changed files with 44 additions and 3 deletions
|
@ -720,6 +720,7 @@ func UpdateClient(db store.IStore) echo.HandlerFunc {
|
|||
client.PublicKey = _client.PublicKey
|
||||
client.PresharedKey = _client.PresharedKey
|
||||
client.UpdatedAt = time.Now().UTC()
|
||||
client.AdditionalNotes = strings.ReplaceAll(strings.Trim(_client.AdditionalNotes, "\r\n"), "\r\n", "\n")
|
||||
|
||||
// write to the database
|
||||
if err := db.SaveClient(client); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue