diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-27 20:50:48 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-27 20:50:48 -0500 |
commit | 39d1c22d8b6b570b386ec2050f6c7e7e63b4d48d (patch) | |
tree | 90866e4628df6d71a99082c546197464854e939f /usr/local/www/wizard.php | |
parent | 5e9dd72accfac397356b9135cc7cc709df98c247 (diff) | |
download | pfsense-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-x | usr/local/www/wizard.php | 2 |
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(); |