Add UID and version into JSON for each Peer
This commit is contained in:
1 parent
42dfd5142e
commit
e600816d5f
1 file changed
+3
-1
+3
-1
@@ -65,8 +65,10 @@ func (peer *Peer) MarshalJSON() ([]byte, error) {
|
||||
})
|
||||
return json.Marshal(struct {
|
||||
Name string
|
||||
UID uint64
|
||||
Version uint64
|
||||
Connections []Connection
|
||||
}{peer.Name.String(), conns})
|
||||
}{peer.Name.String(), peer.UID, peer.version, conns})
|
||||
}
|
||||
|
||||
func (conn *RemoteConnection) MarshalJSON() ([]byte, error) {
|
||||
|
||||
Reference in new issue
Block a user