Skip to content

Commit

Permalink
use different port for lan clearnet than wan clearnet
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-bonez committed Nov 15, 2024
1 parent 5603e88 commit 08d8b19
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/startos/src/net/net_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
)
Expand Down

0 comments on commit 08d8b19

Please sign in to comment.