diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 16:16:08 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-10-16 16:16:08 -0400 |
commit | 30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7 (patch) | |
tree | 6c936c0305db5c3a6d8a18b75985bccbf9057a64 /config/haproxy | |
parent | ce8a6a35cf47ab03fc5dd0366a8694bb509a215b (diff) | |
download | pfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.tar.gz pfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.tar.bz2 pfsense-packages-30b8097b1d2d0ed2d5d6c4b5c52bbde5bb718be7.zip |
Fix selection of listening ip address
Diffstat (limited to 'config/haproxy')
-rw-r--r-- | config/haproxy/haproxy.inc | 2 |
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"; |