Added tunnel stats

This commit is contained in:
2025-04-15 16:20:42 +02:00
parent cfa8a75962
commit a8e3fd9d2a
7 changed files with 220 additions and 12 deletions

View File

@@ -11,6 +11,9 @@ pub fn header() -> Vec<Span<'static>> {
"Access".into(),
"Port".into(),
"Address".into(),
"Conn".into(),
"Rx".into(),
"Tx".into(),
]
}
@@ -31,5 +34,8 @@ pub async fn to_row(tunnel: &Tunnel) -> Vec<Span<'static>> {
access,
tunnel.port.to_string().into(),
address,
tunnel.get_connections().to_string().into(),
tunnel.get_rx_string().into(),
tunnel.get_tx_string().into(),
]
}