From 46f564fada3da3cf85b2b6ff6cc0e120642fda75 Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Mon, 14 Sep 2026 11:45:02 +0200 Subject: [PATCH] strongswan: fix ipsec globals section type When the 'ipsec' section type was migrated to 'globals', the section type was overlooked in '/etc/config/ipsec' and in the config_foreach call in 'swanctl.init'. Both still referred to the old 'type', so the globals section was not picked up. Fixes: e5c5a23a8 ("strongswan: do not use config_foreach named section globals") Signed-off-by: Florian Eckert --- net/strongswan/files/ipsec.config | 2 +- net/strongswan/files/swanctl.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/strongswan/files/ipsec.config b/net/strongswan/files/ipsec.config index 97b9c0c73b..dc114e9779 100644 --- a/net/strongswan/files/ipsec.config +++ b/net/strongswan/files/ipsec.config @@ -4,6 +4,6 @@ # This is the 'globals' config section for the 'strongswan.conf' file. # For LuCI the section type ipsec should only appear once. It must therefore # always be present and should not be added or removed manually. -config ipsec 'globals' +config globals 'globals' config syslog 'syslog' diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 676209e01b..703d36c382 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -825,7 +825,7 @@ service_triggers() { procd_add_reload_trigger "ipsec" config load "ipsec" - config_foreach service_trigger_ipsec ipsec + config_foreach service_trigger_ipsec globals } service_trigger_ipsec() {