Use SERVER_NAME instead of HTTP_HOST env var, it doesn't have port, then it avoids wizard end point to wrong IPv6 address. It should fix #3550

This commit is contained in:
Renato Botelho 2014-07-22 16:39:43 -03:00
parent 1b37ae46e7
commit bc53fec62d

View File

@ -927,8 +927,7 @@ function fixup_string($string) {
$urlport = "";
}
}
$http_host = explode(":", $_SERVER['HTTP_HOST']);
$http_host = $http_host[0];
$http_host = $_SERVER['SERVER_NAME'];
$urlhost = $http_host;
// If finishing the setup wizard, check if accessing on a LAN or WAN address that changed
if($title == "Reload in progress") {