We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84032d1 commit 7856ce9Copy full SHA for 7856ce9
handler/routes.go
@@ -979,10 +979,13 @@ func Status(db store.IStore) echo.HandlerFunc {
979
LastHandshakeTime: devices[i].Peers[j].LastHandshakeTime,
980
LastHandshakeRel: time.Since(devices[i].Peers[j].LastHandshakeTime),
981
AllocatedIP: allocatedIPs,
982
- Endpoint: devices[i].Peers[j].Endpoint.String(),
983
}
984
pVm.Connected = pVm.LastHandshakeRel.Minutes() < 3.
985
+ if isAdmin(c) {
986
+ pVm.Endpoint = devices[i].Peers[j].Endpoint.String()
987
+ }
988
+
989
if _client, ok := m[pVm.PublicKey]; ok {
990
pVm.Name = _client.Name
991
pVm.Email = _client.Email
0 commit comments