mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Honor monitor type for server load balancing
This commit is contained in:
parent
379ab9a529
commit
d38805bc18
@ -81,11 +81,14 @@ function slbd_configure() {
|
||||
$slbdconf .= "\t:method=round-robin:\\\n";
|
||||
$slbdconf .= "\t:services={$svrcnt}:\\\n";
|
||||
$slbdconf .= $svrtxt;
|
||||
if($config['load_balancer']['lbpool'][$i]['monitor'] == "ICMP") {
|
||||
$slbdconf .= "\t:ping:\n";
|
||||
} else {
|
||||
$slbdconf .= "\t:tcppoll:send=:expect=:\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$slbdconf .= "\t:tcppoll:send=:expect=:\n";
|
||||
|
||||
$should_start=1;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user