Skip to content

Commit

Permalink
fix:json peerinfo name for relaynode
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Jan 9, 2025
1 parent bcad523 commit d2b5033
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions cmd/relaynode/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,17 @@ func (api *PublicRelayAPI) GetPeerInfo(verbose *bool, network *string) (interfac
}
}
info := &json.GetPeerInfoResult{
ID: p.PeerID.String(),
Name: p.Name,
Address: p.Address,
BytesSent: p.BytesSent,
BytesRecv: p.BytesRecv,
Bads: p.Bads,
ReConnect: p.ReConnect,
Active: active,
Snap: p.IsSnap(),
SnapSync: p.InSnapSync,
ID: p.PeerID.String(),
Name: p.Name,
Address: p.Address,
BytesSent: p.BytesSent,
BytesRecv: p.BytesRecv,
Bads: p.Bads,
ReConnect: p.ReConnect,
Active: active,
Snap: p.IsSnap(),
InSnapSync: p.InSnapSync,
LongConnStat: p.LongConnStat,
}
info.Protocol = p.Protocol
info.Services = p.Services.String()
Expand Down

0 comments on commit d2b5033

Please sign in to comment.