diff options
-rw-r--r-- | config/stunnel/stunnel.inc | 1 | ||||
-rw-r--r-- | config/stunnel/stunnel.xml | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc index fdc72bf2..552603b6 100644 --- a/config/stunnel/stunnel.inc +++ b/config/stunnel/stunnel.inc @@ -123,6 +123,7 @@ function stunnel_save($config) { if(!is_array($config['installedpackages']['stunnel']['config'])) { $config['installedpackages']['stunnel']['config']=Array(); } foreach($config['installedpackages']['stunnel']['config'] as $pkgconfig) { fwrite($fout, "\n[" . $pkgconfig['description'] . "]\n"); + if($pkgconfig['client']) fwrite($fout, "client = yes" . "\n"); if($pkgconfig['certificate']) { if(file_exists('/usr/local/etc/stunnel/'.$pkgconfig['certificate'].'.key') and file_exists('/usr/local/etc/stunnel/'.$pkgconfig['certificate'].'.chain')) { diff --git a/config/stunnel/stunnel.xml b/config/stunnel/stunnel.xml index 95dea0c1..11334000 100644 --- a/config/stunnel/stunnel.xml +++ b/config/stunnel/stunnel.xml @@ -116,6 +116,12 @@ <type>input</type> </field> <field> + <fielddescr>Client Mode?</fielddescr> + <fieldname>client</fieldname> + <description>Use client mode for this tunnel (i.e. connect to an SSL server, do not act as an SSL server)</description> + <type>checkbox</type> + </field> + <field> <fielddescr>Listen on IP</fielddescr> <fieldname>localip</fieldname> <description>Enter the local IP address to bind this redirection to.</description> |