aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy/haproxy.inc
diff options
context:
space:
mode:
authorsullrich <sullrich@pfsense.org>2009-12-15 09:12:56 -0500
committersullrich <sullrich@pfsense.org>2009-12-15 09:12:56 -0500
commitdcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a (patch)
treeb94fdf8b5c0d5e0c2803c73b9ac5215f3f94fefa /config/haproxy/haproxy.inc
parent64d7fb839093018867e7f2fae3690a0946686dcf (diff)
downloadpfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.tar.gz
pfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.tar.bz2
pfsense-packages-dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a.zip
pick up frontend ports correctly
Diffstat (limited to 'config/haproxy/haproxy.inc')
-rw-r--r--config/haproxy/haproxy.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc
index c9ce9695..59350259 100644
--- a/config/haproxy/haproxy.inc
+++ b/config/haproxy/haproxy.inc
@@ -218,9 +218,9 @@ function haproxy_configure() {
else
$cookie = "";
if(!$server['port']) {
+ $server_ports = "";
+ $isfirst = true;
foreach($ports as $port) {
- $isfirst = false;
- $server_ports = "";
if($port) {
if(!$isfirst)
$server_ports .= ",";