Massive refactor
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 6m12s

This commit is contained in:
2025-04-16 01:53:24 +02:00
parent f75726b93a
commit 3ada40d4ae
7 changed files with 363 additions and 306 deletions

View File

@@ -18,7 +18,7 @@ pub fn header() -> Vec<Span<'static>> {
}
pub async fn to_row(tunnel: &Tunnel) -> Vec<Span<'static>> {
let access = match tunnel.access.read().await.deref() {
let access = match tunnel.inner.access.read().await.deref() {
TunnelAccess::Private(owner) => owner.clone().yellow(),
TunnelAccess::Protected => "PROTECTED".blue(),
TunnelAccess::Public => "PUBLIC".green(),
@@ -30,12 +30,12 @@ pub async fn to_row(tunnel: &Tunnel) -> Vec<Span<'static>> {
.unwrap_or("FAILED".red());
vec![
tunnel.name.clone().into(),
tunnel.registry_entry.get_name().to_owned().into(),
access,
tunnel.port.to_string().into(),
tunnel.inner.port.to_string().into(),
address,
tunnel.stats.connections().to_string().into(),
tunnel.stats.rx().to_string().into(),
tunnel.stats.tx().to_string().into(),
tunnel.inner.stats.connections().to_string().into(),
tunnel.inner.stats.rx().to_string().into(),
tunnel.inner.stats.tx().to_string().into(),
]
}