diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-04-18 19:26:40 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-04-18 19:26:40 +0000 |
commit | ccf95b5a8aa19d508f19933998994a314cda8a66 (patch) | |
tree | 16f96eacfb3259edb5e7ba422b36100d988bfa80 /etc | |
parent | eace136354a0f7bbfd44b96de65b09d309246b88 (diff) | |
download | pfsense-ccf95b5a8aa19d508f19933998994a314cda8a66.zip pfsense-ccf95b5a8aa19d508f19933998994a314cda8a66.tar.gz |
Don not use round-robin on failover lb pools
MFC: ASAP
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index f217662..cbb58f3 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -1576,7 +1576,12 @@ function generate_user_filter_rule($rule, $ngcounter) { } $l++; } - $routeto .= "} round-robin "; + /* If we want failover just use route-to else round-robin */ + if($lb['behaviour'] == "failover") { + $routeto .= "} "; + } else { + $routeto .= "} round-robin "; + } } } /* Add the load balanced gateways */ @@ -3144,4 +3149,4 @@ function return_vpn_subnet($adr) { } -?>
\ No newline at end of file +?> |