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