From bc53fec62dd3e40c8f6c1d65baeb12a40b1167cf Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 22 Jul 2014 16:39:43 -0300 Subject: 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 --- usr/local/www/wizard.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php index b0b2320..1329c77 100644 --- a/usr/local/www/wizard.php +++ b/usr/local/www/wizard.php @@ -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") { -- cgit v1.1