summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-02 22:04:56 +0000
committerErmal <eri@pfsense.org>2011-05-02 22:04:56 +0000
commit9b0ddd8cf37fbf4e453d476a985f00e36bbb0861 (patch)
treeef2cf18a400dbe9349a67dfc1cfd6398ff16bae3
parent0b1321e2dc93ec94bc8b8421abdda6f81da16afb (diff)
downloadpfsense-9b0ddd8cf37fbf4e453d476a985f00e36bbb0861.zip
pfsense-9b0ddd8cf37fbf4e453d476a985f00e36bbb0861.tar.gz
Resolves #1486. When sticky option is selected under advanced->misc honor it even in the relayd.conf setting.
-rw-r--r--etc/inc/vslb.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc
index 2c3f0ca..f984b60 100644
--- a/etc/inc/vslb.inc
+++ b/etc/inc/vslb.inc
@@ -241,6 +241,9 @@ function relayd_configure() {
$conf .= " listen on {$vs_a[$i]['ipaddr']} port {$vs_a[$i]['port']}\n";
$conf .= " forward to <{$vs_a[$i]['pool']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n";
+ if (isset($conf['system']['lb_use_sticky']))
+ $conf .= " sticky-address\n";
+
# sitedown MUST use the same port as the primary pool - sucks, but it's a relayd thing
if (isset($vs_a[$i]['sitedown']) && strlen($vs_a[$i]['sitedown']) > 0)
$conf .= " forward to <{$vs_a[$i]['sitedown']}> port {$pools[$vs_a[$i]['pool']]['port']} {$check_a[$pools[$vs_a[$i]['pool']]['monitor']]} timeout 1000\n";
@@ -354,4 +357,4 @@ function get_lb_summary() {
return $relay_hosts;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud