From 743fe1a098d93b62beba30fe0764dc86891be2df Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 1 Nov 2026 22:18:40 +0100 Subject: dashboard: always try showing ping/pong alias --- src/transport/traffic.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/transport/traffic.rs') diff --git a/src/transport/traffic.rs b/src/transport/traffic.rs index 041471d..21acca6 100644 --- a/src/transport/traffic.rs +++ b/src/transport/traffic.rs @@ -134,6 +134,11 @@ pub(crate) struct Logged { /// exchange. #[serde(skip_serializing_if = "Option::is_none")] pub(crate) related: Option, + /// The address it went to or came from, where the paths layer logged it under that + /// (its own PINGs and PONGs) and the node there is known: `peer` is the node then + /// (`api::dashboard`). + #[serde(skip_serializing_if = "Option::is_none")] + pub(crate) address: Option, } /// What ties `message`, with `peer`, to other messages: a PING and its PONG (the @@ -210,6 +215,7 @@ impl MessageLog { bytes, text, related: related(peer, message), + address: None, }); if inner.entries.len() > LOGGED { inner.entries.pop_front(); -- cgit v1.3.1