From adf36a177d8a7be434eb9cf49d7e372b9c2458e2 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Tue, 23 Sep 2025 22:21:08 +0300 Subject: [PATCH] Fix to make sure SSL_HOST also has port set --- miniserv.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/miniserv.pl b/miniserv.pl index 37fe6ad3f..ff4e75afb 100755 --- a/miniserv.pl +++ b/miniserv.pl @@ -2504,6 +2504,8 @@ if (&get_type($full) eq "internal/cgi" && $validated != 4) { $ENV{"SSL_HSTS"} = $config{"ssl_hsts"}; if ($use_ssl) { $ENV{"SSL_HOST"} = $ssl_host; + $ENV{"SSL_HOST"} .= ":".$port + if ($port && $port !~ /^(80|443)$/); $ENV{"SSL_HOST_CERT"} = &ssl_hostname_match($ssl_host, $ssl_cert_hosts); }