mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
fix friendly name
This commit is contained in:
parent
8c8e1c5451
commit
c840f2bd5f
1 changed files with 2 additions and 0 deletions
|
@ -923,6 +923,7 @@ func Status(db store.IStore) echo.HandlerFunc {
|
||||||
Connected bool
|
Connected bool
|
||||||
AllocatedIP string
|
AllocatedIP string
|
||||||
Endpoint string
|
Endpoint string
|
||||||
|
FriendlyName string
|
||||||
}
|
}
|
||||||
|
|
||||||
type DeviceVM struct {
|
type DeviceVM struct {
|
||||||
|
@ -993,6 +994,7 @@ func Status(db store.IStore) echo.HandlerFunc {
|
||||||
if _client, ok := m[pVm.PublicKey]; ok {
|
if _client, ok := m[pVm.PublicKey]; ok {
|
||||||
pVm.Name = _client.Name
|
pVm.Name = _client.Name
|
||||||
pVm.Email = _client.Email
|
pVm.Email = _client.Email
|
||||||
|
pVm.FriendlyName = _client.FriendlyName
|
||||||
}
|
}
|
||||||
devVm.Peers = append(devVm.Peers, pVm)
|
devVm.Peers = append(devVm.Peers, pVm)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue