diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-11-15 00:03:09 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-11-15 00:03:09 -0600 |
commit | 23f4ad9db2e919aa368de63951ca76ecddafd07c (patch) | |
tree | 512d1afde98cff722300bc578281f7de39563786 /config/stunnel | |
parent | ff6da7650d71192faf188ff495a0957e101c5581 (diff) | |
parent | 1db5b0761e077453a42e380848c62e82ad720b5a (diff) | |
download | pfsense-packages-23f4ad9db2e919aa368de63951ca76ecddafd07c.tar.gz pfsense-packages-23f4ad9db2e919aa368de63951ca76ecddafd07c.tar.bz2 pfsense-packages-23f4ad9db2e919aa368de63951ca76ecddafd07c.zip |
Merge pull request #1147 from PbIXTOP/patch-1
Diffstat (limited to 'config/stunnel')
-rw-r--r-- | config/stunnel/stunnel.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/stunnel/stunnel.inc b/config/stunnel/stunnel.inc index 6dc17ef6..6233679b 100644 --- a/config/stunnel/stunnel.inc +++ b/config/stunnel/stunnel.inc @@ -177,7 +177,7 @@ function stunnel_save($config) { if ($pkgconfig['sourceip']) { fwrite($fout, "local = " . $pkgconfig['sourceip'] . "\n"); } - fwrite($fout, "accept = " . $pkgconfig['localip'] . ":" . $pkgconfig['localport'] . "\n"); + fwrite($fout, "accept = " . ($pkgconfig['localip'] ? $pkgconfig['localip'] . ":" : "") . $pkgconfig['localport'] . "\n"); fwrite($fout, "connect = " . $pkgconfig['redirectip'] . ":" . $pkgconfig['redirectport'] . "\n"); fwrite($fout, "TIMEOUTclose = 0\n\n"); } @@ -257,7 +257,7 @@ function stunnel_install() { if ($pkgconfig['sourceip']) { fwrite($fout, "local = " . $pkgconfig['sourceip'] . "\n"); } - fwrite($fout, "accept = " . $pkgconfig['localip'] . ":" . $pkgconfig['localport'] . "\n"); + fwrite($fout, "accept = " . ($pkgconfig['localip'] ? $pkgconfig['localip'] . ":" : "") . $pkgconfig['localport'] . "\n"); fwrite($fout, "connect = " . $pkgconfig['redirectip'] . ":" . $pkgconfig['redirectport'] . "\n"); fwrite($fout, "TIMEOUTclose = 0\n\n"); } |