aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPbIXTOP <pbixtop@srgn.ru>2015-11-09 13:18:38 +0700
committerPbIXTOP <pbixtop@srgn.ru>2015-11-09 13:18:38 +0700
commit1db5b0761e077453a42e380848c62e82ad720b5a (patch)
treeb3a3087d237e1721f082f2b806146a32e68f6f3a /config
parent2d44eb0225d84775fe3dc9ba4c500386aac79ba7 (diff)
downloadpfsense-packages-1db5b0761e077453a42e380848c62e82ad720b5a.tar.gz
pfsense-packages-1db5b0761e077453a42e380848c62e82ad720b5a.tar.bz2
pfsense-packages-1db5b0761e077453a42e380848c62e82ad720b5a.zip
Update stunnel.inc
Fix using blank field in "Listen on IP"
Diffstat (limited to 'config')
-rw-r--r--config/stunnel/stunnel.inc4
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");
}