add endpoint field to client

This commit is contained in:
Gabriel Soares 2023-10-24 05:24:10 -03:00
parent b55543f424
commit 00ffefac47
5 changed files with 22 additions and 5 deletions

View file

@ -614,6 +614,7 @@ func UpdateClient(db store.IStore) echo.HandlerFunc {
client.AllocatedIPs = _client.AllocatedIPs
client.AllowedIPs = _client.AllowedIPs
client.ExtraAllowedIPs = _client.ExtraAllowedIPs
client.Endpoint = _client.Endpoint
client.PublicKey = _client.PublicKey
client.PresharedKey = _client.PresharedKey
client.UpdatedAt = time.Now().UTC()