From f8bd7102c4ae8db03b2732365e2f987a98490e8f Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Thu, 1 Aug 2019 20:10:59 +0200 Subject: [PATCH] Gateways, IPv6. dynamic gateways without a valid address should have been added to the list, empty($thisconf['dynamic']) doesn't exist in this scope. This unhides ipv6 gateways which didn't receive an address via rtsold --- 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 7183ecaba..7bf74949e 100644 --- a/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php +++ b/src/opnsense/mvc/app/library/OPNsense/Routing/Gateways.php @@ -245,7 +245,7 @@ class Gateways // gateway should only contain a valid address, make sure its empty unset($thisconf['gateway']); $this->cached_gateways[$gwkey] = $thisconf; - } elseif (empty($thisconf['dynamic'])) { + } elseif (!empty($thisconf['dynamic'])) { $gwkey = $this->newKey($thisconf['priority'], !empty($thisconf['defaultgw'])); // gateway should only contain a valid address, make sure its empty unset($thisconf['gateway']);