summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizard.php
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-11-27 20:50:48 -0500
committersullrich <sullrich@pfsense.org>2009-11-27 20:50:48 -0500
commit39d1c22d8b6b570b386ec2050f6c7e7e63b4d48d (patch)
tree90866e4628df6d71a99082c546197464854e939f /usr/local/www/wizard.php
parent5e9dd72accfac397356b9135cc7cc709df98c247 (diff)
downloadpfsense-39d1c22d8b6b570b386ec2050f6c7e7e63b4d48d.zip
pfsense-39d1c22d8b6b570b386ec2050f6c7e7e63b4d48d.tar.gz
Use _SERVER['HTTP_HOST'] instead of lanip Resolves #157
Diffstat (limited to 'usr/local/www/wizard.php')
-rwxr-xr-xusr/local/www/wizard.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/wizard.php b/usr/local/www/wizard.php
index ed085d1..0733552 100755
--- a/usr/local/www/wizard.php
+++ b/usr/local/www/wizard.php
@@ -653,7 +653,7 @@ function fixup_string($string) {
$urlport = "";
}
}
- $myurl = $proto . "://" . get_interface_ip("lan") . $urlport . "/";
+ $myurl = $proto . "://" . $_SERVER['HTTP_HOST'] . $urlport . "/";
$newstring = str_replace("\$myurl", $myurl, $newstring);
// fixup #2: $wanip
$curwanip = get_interface_ip();
OpenPOWER on IntegriCloud