From 08d8b1921045295423c52c21b63dbe8726e1042a Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Fri, 15 Nov 2024 10:45:41 -0700 Subject: [PATCH] use different port for lan clearnet than wan clearnet --- core/startos/src/net/net_controller.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/startos/src/net/net_controller.rs b/core/startos/src/net/net_controller.rs index a3af0f958..85aaa037b 100644 --- a/core/startos/src/net/net_controller.rs +++ b/core/startos/src/net/net_controller.rs @@ -341,15 +341,12 @@ impl NetService { ) .await?, ); - if ssl.preferred_external_port == 443 - && !ctrl.server_hostnames.contains(&address) - // paranoia: this should be checked before the data is added but it would be *real* bad if this conflicted with a main ui address - { + if ssl.preferred_external_port == 443 { rcs.push( ctrl.vhost .add( address.clone(), - 443, + 5443, target, connect_ssl.clone(), )