summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-21 04:29:13 +0000
committerBill Marquette <billm@pfsense.org>2005-03-21 04:29:13 +0000
commit390c2739d2280dd1798855b4d0d283d30120aaa0 (patch)
tree960ff372e5547d5ca4448dd9705469a107d8dd2a
parent0a44a4212d4325ef7b5b205ad820ff209182ec01 (diff)
downloadpfsense-390c2739d2280dd1798855b4d0d283d30120aaa0.zip
pfsense-390c2739d2280dd1798855b4d0d283d30120aaa0.tar.gz
make webgui proto chagne transparent to user, just redirect to new port
-rwxr-xr-xusr/local/www/system.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index 7c045fd..6c63de4 100755
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -134,10 +134,13 @@ if ($_POST) {
write_config();
- // restart webgui if proto changed
+ // restart webgui if proto or port changed
if (($oldwebguiproto != $config['system']['webgui']['protocol']) ||
- ($oldwebguiport != $config['system']['webgui']['port']))
+ ($oldwebguiport != $config['system']['webgui']['port'])) {
+ global $_SERVER;
system_webgui_start();
+ header("Location: {$config['system']['webgui']['protocol']}://{$_SERVER['SERVER_NAME']}/system.php");
+ }
$retval = 0;
if (!file_exists($d_sysrebootreqd_path)) {
OpenPOWER on IntegriCloud