diff --git a/router/json.go b/router/json.go index dadd4ff6a2..3566bdae3a 100644 --- a/router/json.go +++ b/router/json.go @@ -63,10 +63,11 @@ func (routes *Routes) MarshalJSON() ([]byte, error) { func (peer *Peer) MarshalJSON() ([]byte, error) { return json.Marshal(struct { Name string + Nickname string UID uint64 Version uint64 Connections []Connection - }{peer.Name.String(), peer.UID, peer.version, peer.Connections()}) + }{peer.Name.String(), peer.NickName, peer.UID, peer.version, peer.Connections()}) } func (conn *RemoteConnection) MarshalJSON() ([]byte, error) {