Added protected mode

This commit is contained in:
2025-04-10 16:53:17 +02:00
parent ffc831951a
commit 2749f3d1cf
4 changed files with 18 additions and 8 deletions

View File

@@ -13,6 +13,7 @@ pub async fn to_row((address, tunnel): (&String, &Option<Tunnel>)) -> Vec<Span<'
let (access, port) = if let Some(tunnel) = tunnel {
let access = match tunnel.access.read().await.deref() {
TunnelAccess::Private(owner) => owner.clone().yellow(),
TunnelAccess::Protected => "PROTECTED".blue(),
TunnelAccess::Public => "PUBLIC".green(),
};