mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
(legacy) cleanups gwlb.inc
This commit is contained in:
parent
1f70bc5914
commit
cc4c65c32e
@ -931,7 +931,7 @@ function get_interface_gateway($interface, &$dynamic = false)
|
||||
|
||||
if (isset($config['interfaces'][$interface])) {
|
||||
$gwcfg = $config['interfaces'][$interface];
|
||||
if (!empty($gwcfg['gateway']) && isset($config['gateways']['gateway_item']) && is_array($config['gateways']['gateway_item'])) {
|
||||
if (!empty($gwcfg['gateway']) && isset($config['gateways']['gateway_item'])) {
|
||||
foreach($config['gateways']['gateway_item'] as $gateway) {
|
||||
if(($gateway['name'] == $gwcfg['gateway']) && (is_ipaddrv4($gateway['gateway']))) {
|
||||
$gw = $gateway['gateway'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user