aboutsummaryrefslogtreecommitdiffstats
path: root/config/anyterm/access_anyterm.php
diff options
context:
space:
mode:
Diffstat (limited to 'config/anyterm/access_anyterm.php')
-rw-r--r--config/anyterm/access_anyterm.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/anyterm/access_anyterm.php b/config/anyterm/access_anyterm.php
index b1703932..059efc94 100644
--- a/config/anyterm/access_anyterm.php
+++ b/config/anyterm/access_anyterm.php
@@ -37,7 +37,10 @@ if($config['installedpackages']['anyterm']['config'][0]['stunnelport']) {
$httpors = "http";
}
-$location = "{$_SERVER['SERVER_ADDR']}:{$port}/anyterm.html";
+if($config['installedpackages']['anyterm']['config'][0]['stunnelipaddr'])
+ $location = "{$config['installedpackages']['anyterm']['config'][0]['stunnelipaddr']}:{$port}/anyterm.html";
+else
+ $location = "{$_SERVER['SERVER_ADDR']}:{$port}/anyterm.html";
Header("Location: {$httpors}://{$location}");