aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-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";