summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/system.php')
-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