From 006c39380a8633c22434cd2a45cb471cd7b474c0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 14 Nov 2019 20:24:35 -0700 Subject: [PATCH] Display 'none' instead of 0.0.0.0 (#6973) --- core/src/cluster_info.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/cluster_info.rs b/core/src/cluster_info.rs index 2a140941d6..3c81a63775 100644 --- a/core/src/cluster_info.rs +++ b/core/src/cluster_info.rs @@ -273,7 +273,11 @@ impl ClusterInfo { let ip_addr = node.gossip.ip(); format!( "{:15} {:2}| {:5} | {:44} | {:5}| {:5}| {:5} | {:5}| {:5} | {:5}| {:5} | {:5}| {:5}\n", - ip_addr.to_string(), + if ContactInfo::is_valid_address(&node.gossip) { + ip_addr.to_string() + } else { + "none".to_string() + }, if node.id == my_pubkey { "me" } else { "" }.to_string(), now.saturating_sub(last_updated), node.id.to_string(),