mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(gwlb.inc) more cleanups, $ifname == $gateway_item['friendlyiface'] looks kind of impossible here, $ifname is unique and not in $gateway_item yet...
This commit is contained in:
parent
79a6df22ad
commit
a5d9897c1e
@ -532,14 +532,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_ipaddrv4($gateway['gateway'])) {
|
||||
$gateway['monitor'] = $gateway['gateway'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user