aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-17 01:30:18 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-17 01:30:18 -0400
commit292ae51154e9c1ebbd33cbcc6f6a7c38f8b49cf8 (patch)
tree040614af833b3254f719c3d194e0a7e2097b167e
parent3575f2eb3a42e09948f6fbaf7fbe3ad26556769a (diff)
downloadpfsense-packages-292ae51154e9c1ebbd33cbcc6f6a7c38f8b49cf8.tar.gz
pfsense-packages-292ae51154e9c1ebbd33cbcc6f6a7c38f8b49cf8.tar.bz2
pfsense-packages-292ae51154e9c1ebbd33cbcc6f6a7c38f8b49cf8.zip
Allow setting of STunnel listening IP in case the operator wants to host his anyterm on WAN
-rw-r--r--config/anyterm/access_anyterm.php5
-rw-r--r--config/anyterm/anyterm.xml10
2 files changed, 14 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}");
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
@@ -97,6 +97,16 @@
<type>input</type>
</field>
<field>
+ <fielddescr>STunnel IP Address</fielddescr>
+ <fieldname>stunnelipaddr</fieldname>
+ <description>
+ <![CDATA[
+ [OPTIONAL] If you have setup a STunnel forward (recommended!) enter its listening IP address here (generally WAN IP).
+ ]]>
+ </description>
+ <type>input</type>
+ </field>
+ <field>
<fielddescr>STunnel Port</fielddescr>
<fieldname>stunnelport</fieldname>
<description>