Routing, gateways. log gateways that are not being considered, https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis 2019-04-15 12:51:23 +02:00
parent dd8d3444f5
commit b4d8a49678

View File

@ -294,6 +294,9 @@ function filter_configure_sync($verbose = false, $flush_states = false, $load_al
// we keep it here for now (historical reasons).
$down_gateways = return_down_gateways();
foreach (array("inet", "inet6") as $ipprotocol) {
if (!empty($down_gateways)) {
log_error(sprintf("Ignore down %s gateways : %s", $ipprotocol, implode(",", $down_gateways)));
}
$default_gw = $fw->getGateways()->getDefaultGW($down_gateways, $ipprotocol);
if ($default_gw !== null) {
system_default_route(