aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-dev/haproxy.inc
diff options
context:
space:
mode:
authorthompsa <andy@fud.org.nz>2010-02-08 07:54:43 +1300
committerthompsa <andy@fud.org.nz>2010-02-08 07:55:35 +1300
commit8c30271ae4314c990019b96eb2aed3dfdbbee43a (patch)
tree58a61c10b0b9f2f8874d1d0cde84af054cdc606a /config/haproxy-dev/haproxy.inc
parent013161627742bd3083e8f088fbb5de676d5477a9 (diff)
downloadpfsense-packages-8c30271ae4314c990019b96eb2aed3dfdbbee43a.tar.gz
pfsense-packages-8c30271ae4314c990019b96eb2aed3dfdbbee43a.tar.bz2
pfsense-packages-8c30271ae4314c990019b96eb2aed3dfdbbee43a.zip
Save the default server port which is different to the external port
number.
Diffstat (limited to 'config/haproxy-dev/haproxy.inc')
-rw-r--r--config/haproxy-dev/haproxy.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/haproxy-dev/haproxy.inc b/config/haproxy-dev/haproxy.inc
index d6665f38..0a8f60fc 100644
--- a/config/haproxy-dev/haproxy.inc
+++ b/config/haproxy-dev/haproxy.inc
@@ -265,7 +265,7 @@ function haproxy_configure() {
$a_servers = &$pool['ha_servers']['item'];
foreach($a_servers as $be) {
if(!$be['port'])
- $be['port'] = $backend['port'];
+ $be['port'] = $backend['svrport'];
if (!$be['name'])
$be['name'] = $be['address'];
fwrite ($fd, "\tserver\t\t\t" . $be['name'] . " " . $be['address'].":" . $be['port'] . " $cookie " . " $checkinter weight " . $be['weight'] . "{$advanced_txt}\n");