From 0e286b3a34cf366efa88a2616e1e1a0c22b8180c Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 7 Feb 2023 14:45:27 +0100 Subject: [PATCH] firewall: do not switch gateway on bootup --- src/etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/inc/filter.inc b/src/etc/inc/filter.inc index 24144b261..04966dd8b 100644 --- a/src/etc/inc/filter.inc +++ b/src/etc/inc/filter.inc @@ -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).