From 1c7f6c229003bad48078b217a8a2315470c32136 Mon Sep 17 00:00:00 2001 From: raychu86 <14917648+raychu86@users.noreply.github.com> Date: Fri, 26 Aug 2022 09:45:18 -0700 Subject: [PATCH] Display full peer address --- snarkos/ledger/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snarkos/ledger/server.rs b/snarkos/ledger/server.rs index dbef650af0..ff9c2f121e 100644 --- a/snarkos/ledger/server.rs +++ b/snarkos/ledger/server.rs @@ -307,7 +307,7 @@ impl Server { /// Returns the peers connected to the node. async fn peers_all(ledger: Arc>) -> Result { Ok(reply::json( - &ledger.peers.read().keys().map(|addr| addr.ip()).collect::>(), + &ledger.peers.read().keys().cloned().collect::>(), )) }