From a6264e5062da581814fecc0479c5b0dfe0f95239 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Fri, 2 Aug 2019 10:23:00 +0200 Subject: [PATCH] Gateways, since we return empty gateways for dynamic ipv6 entries, we should also permit those as default gateway. could be https://github.com/opnsense/core/issues/3604 --- src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }