aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-16 22:04:17 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-16 22:04:17 -0500
commitc7c3dad7eafbeae9e6c1d1a26a71541876efaaf5 (patch)
tree529ae0fc2beaaa318a3fd47bf74ddeb19bb12560
parent3a8a51cff97206a24fc2e08152baee107f79040f (diff)
downloadpfsense-packages-c7c3dad7eafbeae9e6c1d1a26a71541876efaaf5.tar.gz
pfsense-packages-c7c3dad7eafbeae9e6c1d1a26a71541876efaaf5.tar.bz2
pfsense-packages-c7c3dad7eafbeae9e6c1d1a26a71541876efaaf5.zip
Add missing else
-rw-r--r--config/haproxy/haproxy.inc2
1 files changed, 1 insertions, 1 deletions
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";