mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Resolves #1486. When sticky option is selected under advanced->misc honor it even in the relayd.conf setting.
This commit is contained in:
parent
0b1321e2dc
commit
9b0ddd8cf3
@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user