mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-07 16:54:16 +01:00
sends wtversion to dashboard-UI (#229)
This commit is contained in:
parent
cd9a418df2
commit
15e371b592
@ -23,6 +23,7 @@ type PeerResponse struct {
|
||||
Connected bool
|
||||
LastSeen time.Time
|
||||
OS string
|
||||
Version string
|
||||
}
|
||||
|
||||
//PeerRequest is a request sent by the client
|
||||
@ -139,5 +140,6 @@ func toPeerResponse(peer *server.Peer) *PeerResponse {
|
||||
Connected: peer.Status.Connected,
|
||||
LastSeen: peer.Status.LastSeen,
|
||||
OS: fmt.Sprintf("%s %s", peer.Meta.OS, peer.Meta.Core),
|
||||
Version: peer.Meta.WtVersion,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user