firewall: do not switch gateway on bootup

This commit is contained in:
Franco Fichtner 2023-02-07 14:45:27 +01:00
parent 09b2bec389
commit 0e286b3a34

View File

@ -252,7 +252,7 @@ function filter_configure_sync($verbose = false, $load_aliases = true)
}
}
if (isset($config['system']['gw_switch_default'])) {
if (isset($config['system']['gw_switch_default']) && !product::getInstance()->booting()) {
// When gateway switching is enabled, we might consider a different default gateway.
// although this isn't really the right spot for the feature (it's a monitoring/routing decision),
// we keep it here for now (historical reasons).