From 292ae51154e9c1ebbd33cbcc6f6a7c38f8b49cf8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 17 Oct 2009 01:30:18 -0400 Subject: Allow setting of STunnel listening IP in case the operator wants to host his anyterm on WAN --- config/anyterm/access_anyterm.php | 5 ++++- config/anyterm/anyterm.xml | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) (limited to 'config/anyterm') 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}"); diff --git a/config/anyterm/anyterm.xml b/config/anyterm/anyterm.xml index e155696c..4881e071 100644 --- a/config/anyterm/anyterm.xml +++ b/config/anyterm/anyterm.xml @@ -96,6 +96,16 @@ Enter the port that Anyterm will listen on Default is 8080. input + + STunnel IP Address + stunnelipaddr + + + + input + STunnel Port stunnelport -- cgit v1.2.3