Routing, gateways. minor regression in getDefaultGW() we should only return a gateway with an address as default here. for https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis 2019-04-14 14:41:21 +02:00
parent e053087280
commit bfca97e2e0

View File

@ -266,8 +266,9 @@ class Gateways
continue;
} elseif (!empty($gateway['disabled'])) {
continue;
} elseif (!empty($gateway['gateway'])) {
return $gateway;
}
return $gateway;
}
}
// not found