From c7c3dad7eafbeae9e6c1d1a26a71541876efaaf5 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Mon, 16 Nov 2009 22:04:17 -0500 Subject: Add missing else --- config/haproxy/haproxy.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 9fdd7b49..e87e0817 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -124,7 +124,7 @@ function haproxy_configure() { if($backend['extaddr'] == "any") $listenip = "listen {$backend['name']}\t\t\t0.0.0.0:".$backend['port']."\n"; - if($backend['extaddr']) + elseif($backend['extaddr']) $listenip = "listen {$backend['name']}\t\t\t" . $backend['extaddr'] . ":" . $backend['port']."\n"; else $listenip = "listen {$backend['name']}\t\t\t" . get_current_wan_address('wan').":" . $backend['port']."\n"; -- cgit v1.2.3