aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-16 16:16:08 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-16 16:16:08 -0400
commit30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7 (patch)
tree6c936c0305db5c3a6d8a18b75985bccbf9057a64 /config
parentce8a6a35cf47ab03fc5dd0366a8694bb509a215b (diff)
downloadpfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.tar.gz
pfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.tar.bz2
pfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.zip
Fix selection of listening ip address
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 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";