fix friendly name

This commit is contained in:
kadet77rus 2024-10-28 13:07:40 +03:00
parent 8c8e1c5451
commit c840f2bd5f

View file

@ -923,6 +923,7 @@ func Status(db store.IStore) echo.HandlerFunc {
Connected bool
AllocatedIP string
Endpoint string
FriendlyName string
}
type DeviceVM struct {
@ -993,6 +994,7 @@ func Status(db store.IStore) echo.HandlerFunc {
if _client, ok := m[pVm.PublicKey]; ok {
pVm.Name = _client.Name
pVm.Email = _client.Email
pVm.FriendlyName = _client.FriendlyName
}
devVm.Peers = append(devVm.Peers, pVm)
}