Add UID and version into JSON for each Peer

This commit is contained in:
Bryan Boreham committed 2015-02-02 14:41:49 +00:00
1 parent 42dfd5142e
commit e600816d5f
1 file changed
+3 -1
+3 -1
View File
@@ -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) {