diff --git a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php index eb3fc288d..b6002a696 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php +++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php @@ -276,7 +276,7 @@ class Gateways continue; } elseif (!empty($gateway['disabled']) || !empty($gateway['is_loopback'])) { continue; - } elseif (!empty($gateway['gateway'])) { + } else { return $gateway; } }