Skip to content

Commit

Permalink
Display full peer address
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Aug 26, 2022
1 parent ea446b8 commit 1c7f6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snarkos/ledger/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ impl<N: Network> Server<N> {
/// Returns the peers connected to the node.
async fn peers_all(ledger: Arc<Ledger<N>>) -> Result<impl Reply, Rejection> {
Ok(reply::json(
&ledger.peers.read().keys().map(|addr| addr.ip()).collect::<Vec<std::net::IpAddr>>(),
&ledger.peers.read().keys().cloned().collect::<Vec<std::net::SocketAddr>>(),
))
}

Expand Down

0 comments on commit 1c7f6c2

Please sign in to comment.