From 30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 16 Oct 2009 16:16:08 -0400 Subject: Fix selection of listening ip address --- config/haproxy/haproxy.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/haproxy') diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index af2cf736..2ba3edc1 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -118,7 +118,7 @@ function haproxy_configure() { if(is_array($a_backends)) { foreach ($a_backends as $backend) { - if($frontend['extaddr']=='any') + if($backend['extaddr']=='any') $listenip = "listen {$backend['name']}\t\t\t0.0.0.0:".$backend['port']."\n"; else if($frontend['extaddr']=='') $listenip = "listen {$backend['name']}\t\t\t" . get_current_wan_address('wan').":" . $backend['port']."\n"; -- cgit v1.2.3