mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Fix to make sure SSL_HOST also has port set
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user