This commit is contained in:
Jamie Cameron
2017-04-27 23:23:14 -07:00
parent 36ed9b2212
commit 640bc8495c

View File

@@ -1327,9 +1327,9 @@ elsif ($reqline !~ /^(\S+)\s+(.*)\s+HTTP\/1\..$/) {
if ($use_ssl) {
# This could be an http request when it should be https
$use_ssl = 0;
local $url = $config{'musthost'} ?
"https://$config{'musthost'}:$port/" :
"https://$host:$port/";
local $urlhost = $config{'musthost'} || $host;
$urlhost = "[".$urlhost."]" if (&check_ip6address($urlhost));
local $url = "https://$urlhost:$port/";
if ($config{'ssl_redirect'}) {
# Just re-direct to the correct URL
sleep(1); # Give browser a change to finish