client: print endpoint reported by wireguard, not server
thanks again @strohel :)pull/153/head
parent
b179a62a22
commit
f774a5f97c
|
@ -1033,10 +1033,10 @@ fn print_peer(peer: &PeerState, short: bool, level: usize) {
|
||||||
&peer.public_key[..10].yellow(),
|
&peer.public_key[..10].yellow(),
|
||||||
);
|
);
|
||||||
println_pad!(pad, " {}: {}", "ip".bold(), peer.ip);
|
println_pad!(pad, " {}: {}", "ip".bold(), peer.ip);
|
||||||
if let Some(ref endpoint) = peer.endpoint {
|
|
||||||
println_pad!(pad, " {}: {}", "endpoint".bold(), endpoint);
|
|
||||||
}
|
|
||||||
if let Some(info) = info {
|
if let Some(info) = info {
|
||||||
|
if let Some(endpoint) = info.config.endpoint {
|
||||||
|
println_pad!(pad, " {}: {}", "endpoint".bold(), endpoint );
|
||||||
|
}
|
||||||
if let Some(last_handshake) = info.stats.last_handshake_time {
|
if let Some(last_handshake) = info.stats.last_handshake_time {
|
||||||
let duration = last_handshake.elapsed().expect("horrible clock problem");
|
let duration = last_handshake.elapsed().expect("horrible clock problem");
|
||||||
println_pad!(
|
println_pad!(
|
||||||
|
|
Loading…
Reference in New Issue