summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-07-22 16:39:43 -0300
committerRenato Botelho <garga@FreeBSD.org>2014-07-22 16:39:43 -0300
commitbc53fec62dd3e40c8f6c1d65baeb12a40b1167cf (patch)
tree1ddf5f330246e08ca804a15c1c61e0acea057d0a
parent1b37ae46e73fed8db8ca6c5cc67988a369a738b8 (diff)
downloadpfsense-bc53fec62dd3e40c8f6c1d65baeb12a40b1167cf.zip
pfsense-bc53fec62dd3e40c8f6c1d65baeb12a40b1167cf.tar.gz
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
-rw-r--r--usr/local/www/wizard.php3
1 files changed, 1 insertions, 2 deletions
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") {
OpenPOWER on IntegriCloud