diff options
| author | tv <tv@krebsco.de> | 2026-11-01 22:18:40 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-01 22:18:40 +0100 |
| commit | 743fe1a098d93b62beba30fe0764dc86891be2df (patch) | |
| tree | 5941329dbf650bcc48baad35d9c41da2d25d78d3 /src/transport/traffic.rs | |
| parent | f5ec3cdfe33ea5a0a79ea3ae45c6441c9d465dd9 (diff) | |
dashboard: always try showing ping/pong alias
Diffstat (limited to 'src/transport/traffic.rs')
| -rw-r--r-- | src/transport/traffic.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<String>, + /// 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<String>, } /// 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(); |
