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
This commit is contained in:
Ad Schellevis 2019-08-01 20:10:59 +02:00
parent 7edd851e20
commit f8bd7102c4

View File

@ -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']);