sends wtversion to dashboard-UI (#229)

This commit is contained in:
shatoboar 2022-02-14 17:51:07 +01:00 committed by GitHub
parent cd9a418df2
commit 15e371b592
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
}
}