Remove port 443 during installation

This commit is contained in:
danpros 2023-12-04 11:49:53 +07:00
commit 1276b93c91
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ class Settings
$dir = '';
}
$port = '';
if ($_SERVER["SERVER_PORT"] != "80") {
if ($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443") {
$port = ':' . $_SERVER["SERVER_PORT"];
}
$scheme = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http';