Commit aa1221ae authored by Ad Schellevis's avatar Ad Schellevis

(gwlb.inc) same here, as $ifname for ipv6 is also unique

parent a5d9897c
......@@ -617,14 +617,6 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
$gateway['gateway'] = "dynamic";
}
/* automatically skip known static and dynamic gateways we have a array entry for */
foreach($gateways_arr as $gateway_item) {
if ((($ifname == $gateway_item['friendlyiface'] && $friendly == $gateway_item['name']) && ($gateway['ipprotocol'] == $gateway_item['ipprotocol'])) ||
($ifname == $gateway_item['friendlyiface'] && $gateway_item['dynamic'] == true) && ($gateway['ipprotocol'] == $gateway_item['ipprotocol'])) {
continue 2;
}
}
if (is_ipaddrv6($gateway['gateway'])) {
$gateway['monitor'] = $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