diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/stunnel/stunnel.inc | 1 | ||||
-rw-r--r-- | config/stunnel/stunnel.xml | 8 |
2 files changed, 8 insertions, 1 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 21e023a9..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> @@ -158,7 +164,7 @@ </fields> <service> <name>stunnel</name> - <rcfile>/usr/local/etc/rc.d/stunnel.sh</rcfile> + <rcfile>stunnel.sh</rcfile> <executable>stunnel</executable> </service> <include_file>/usr/local/pkg/stunnel.inc</include_file> |