mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-04-19 19:59:13 +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
|
||||
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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue