Commit 6009ab93 authored by Ad Schellevis's avatar Ad Schellevis

gwlb, bug in return_gateway_groups_array() leading in always selecting the...

gwlb, bug in return_gateway_groups_array() leading in always selecting the default gateway. check should have been, this interface is up or none are up.
parent 575c6440
......@@ -839,7 +839,7 @@ function return_gateway_groups_array()
/* process all gateways in this tier */
foreach ($tier as $member_item) {
$member = $member_item['gwname'];
if (($member_item['up'] || $tiers_online) && isset($gateways_arr[$member])) {
if (($member_item['up'] || $tiers_online == 0) && isset($gateways_arr[$member])) {
/* determine interface gateway */
$gateway = $gateways_arr[$member];
if (is_ipaddr($gateway['gateway'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment