mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow selection of pools for outgoing load balanacing
This commit is contained in:
parent
7fb2f3f722
commit
e6c0da7cf2
@ -801,14 +801,23 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
|
||||
<select name='gateway'>
|
||||
<?php
|
||||
foreach($gateways as $gw) {
|
||||
if($gw == $pconfig['gateway'])
|
||||
if($gw == $pconfig['gateway']) {
|
||||
$selected = " SELECTED";
|
||||
else
|
||||
} else {
|
||||
$selected = "";
|
||||
if ($gw == "default")
|
||||
echo "<option value=\"\" {$selected}>{$gw}</option>\n";
|
||||
else
|
||||
}
|
||||
if ($gw == "default") {
|
||||
echo "<option value=\"\" {$selected}>{$gw}</option>\n";
|
||||
} else {
|
||||
echo "<option value=\"{$gw}\" {$selected}>{$gw}</option>\n";
|
||||
}
|
||||
}
|
||||
foreach($config['load_balancer']['virtual_server'] as $lb) {
|
||||
if($config['gateway'] == $lb['name']) {
|
||||
echo "<option value=\"{$lb['name']}\" SELECTED>{$lb['name']}</option>\n";
|
||||
} else {
|
||||
echo "<option value=\"{$lb['name']}\">{$lb['name']}</option>\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user