From dcef4b5ba15e3c157f4c3b0b6b6ca33ab78a554a Mon Sep 17 00:00:00 2001 From: sullrich Date: Tue, 15 Dec 2009 09:12:56 -0500 Subject: pick up frontend ports correctly --- config/haproxy/haproxy.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/haproxy/haproxy.inc') 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 .= ","; -- cgit v1.2.3