From 3a84cc97fe25bf98a255e9391f7094df408c3e92 Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 7 Aug 2025 17:21:09 -0600 Subject: [PATCH] comments --- .../routes/portal/components/interfaces/interface.utils.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.utils.ts b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.utils.ts index 67461a041..1bc8af0b3 100644 --- a/web/projects/ui/src/app/routes/portal/components/interfaces/interface.utils.ts +++ b/web/projects/ui/src/app/routes/portal/components/interfaces/interface.utils.ts @@ -43,6 +43,8 @@ function cmpLan(host: T.Host, a: LanAddress, b: LanAddress): -1 | 0 | 1 { !host.domains[x.info.hostname.value]?.public, // private domain x => x.info.hostname.kind === 'local', // .local x => x.info.hostname.kind === 'ipv4', // ipv4 + x => x.info.hostname.kind === 'ipv6', // ipv6 + // remainder: public domains accessible privately ]) } @@ -64,6 +66,8 @@ function cmpVpn(host: T.Host, a: VpnAddress, b: VpnAddress): -1 | 0 | 1 { x.info.hostname.kind === 'domain' && !host.domains[x.info.hostname.value]?.public, // private domain x => x.info.hostname.kind === 'ipv4', // ipv4 + x => x.info.hostname.kind === 'ipv6', // ipv6 + // remainder: public domains accessible privately ]) } @@ -89,6 +93,8 @@ function cmpClearnet( x.info.gatewayId === domains[host.domains[x.info.hostname.value]?.root!]?.gateway, // public domain for this gateway x => x.info.hostname.kind === 'ipv4', // ipv4 + x => x.info.hostname.kind === 'ipv6', // ipv6 + // remainder: private domains / domains public on other gateways ]) }