(gwlb.inc) ok, this looks odd, I can't find a valid use of "ipprotocol" in the gatewaygroups. (other then the one filter.inc)

This commit is contained in:
Ad Schellevis 2017-03-14 21:43:02 +01:00
parent ee8955e49d
commit 2dbc3ab259
2 changed files with 3 additions and 3 deletions

View File

@ -913,8 +913,6 @@ function filter_generate_gateways()
if (is_array($GatewayGroupsList)) {
foreach ($GatewayGroupsList as $gateway => $members) {
$route = "";
/* hey, that's not a group member! */
unset($members['ipprotocol']);
if (count($members) > 0) {
$foundlb = 0;
$routeto = "";

View File

@ -860,7 +860,9 @@ function return_gateway_groups_array()
}
if (!empty($gateway['interface'])) {
$gateway_groups_array[$group['name']]['ipprotocol'] = $gateway['ipprotocol'];
if (empty($gateway_groups_array[$group['name']])) {
$gateway_groups_array[$group['name']] = array();
}
if (is_ipaddr($gatewayip)) {
$groupmember = array();
$groupmember['int'] = $gateway['interface'];