Commit c0c56778 authored by Franco Fichtner's avatar Franco Fichtner

gataways: empty ipaddr means there is no gateway; closes #933

parent acbd63db
......@@ -602,7 +602,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
continue;
}
if (!empty($ifcfg['ipaddr']) && is_ipaddrv4($ifcfg['ipaddr'])) {
if (empty($ifcfg['ipaddr']) || is_ipaddrv4($ifcfg['ipaddr'])) {
continue;
}
......@@ -688,7 +688,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive
continue;
}
if (!empty($ifcfg['ipaddrv6']) && is_ipaddrv6($ifcfg['ipaddrv6'])) {
if (empty($ifcfg['ipaddrv6']) || is_ipaddrv6($ifcfg['ipaddrv6'])) {
continue;
}
......
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