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 | eb8965ec711971f13254b40f174967c081fba6d0 (patch) | |
| tree | 2c326ab471228bb06d1b446594ab79ae2fee51b5 /src/transport/traffic.rs | |
| parent | 9c2786c2186499595a8b3264d78b1af81f834eb9 (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(); |
