Fix to make sure SSL_HOST also has port set

This commit is contained in:
Ilia Ross
2025-09-23 22:21:08 +03:00
parent 9393162b0e
commit adf36a177d

View File

@@ -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);
}