Display 'none' instead of 0.0.0.0 (#6973)
This commit is contained in:
parent
22f2247f46
commit
006c39380a
|
@ -273,7 +273,11 @@ impl ClusterInfo {
|
||||||
let ip_addr = node.gossip.ip();
|
let ip_addr = node.gossip.ip();
|
||||||
format!(
|
format!(
|
||||||
"{:15} {:2}| {:5} | {:44} | {:5}| {:5}| {:5} | {:5}| {:5} | {:5}| {:5} | {:5}| {:5}\n",
|
"{: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(),
|
if node.id == my_pubkey { "me" } else { "" }.to_string(),
|
||||||
now.saturating_sub(last_updated),
|
now.saturating_sub(last_updated),
|
||||||
node.id.to_string(),
|
node.id.to_string(),
|
||||||
|
|
Loading…
Reference in New Issue