summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-13 22:20:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-13 22:20:16 +0000
commite2c41c393f2a9db396e27dc5bc757c0a920ff7f0 (patch)
treea5c5cc1f6c2e8463298c0fd380d9324e1ee411e2 /usr/local/www
parente02f143c7acdd6bbfa87ea3a3a739e20f31a23f6 (diff)
downloadpfsense-e2c41c393f2a9db396e27dc5bc757c0a920ff7f0.zip
pfsense-e2c41c393f2a9db396e27dc5bc757c0a920ff7f0.tar.gz
SERVER_NAME -> SERVER_ADDR
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/system.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index 48a7471..e9c693c 100755
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -276,9 +276,9 @@ include("head.inc");
if ($restart_webgui) {
global $_SERVER;
if ($pconfig['webguiport']) {
- $url="{$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}:{$pconfig['webguiport']}/system.php";
+ $url="{$pconfig['webguiproto']}://{$_SERVER['SERVER_ADDR']}:{$pconfig['webguiport']}/system.php";
} else {
- $url = "{$pconfig['webguiproto']}://{$_SERVER['SERVER_NAME']}/system.php";
+ $url = "{$pconfig['webguiproto']}://{$_SERVER['SERVER_ADDR']}/system.php";
}
echo "<p>One moment... switching https mode/port...</p>";
echo "<meta http-equiv=\"refresh\" content=\"10;url={$url}\">";
OpenPOWER on IntegriCloud