mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 16:37:36 +04:00
strongswan: do not use config_foreach named section globals
In a previous commit, the anonymous 'ipsec' section was changed to a named section called 'globals'. The reason for this is that this is where the 'strongswan.conf' configuration option are saved. This should only occur once. Since only one strongswan service can be running on the system. Therefore, in this commit, the 'config_foreach' loop is removed and the section is permanently set to 'globals'. This commit does not change the function and is a preparatory commit. Assuming there is a global section named 'ipsec'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
1 parent
8c2c290a46
commit
e5c5a23a8b
1 file changed
+2
-2
@@ -652,7 +652,7 @@ config_remote() {
|
||||
swanctl_xappend0 ""
|
||||
}
|
||||
|
||||
config_ipsec() {
|
||||
config_strongswan_generate() {
|
||||
local conf="$1"
|
||||
|
||||
local debug install_routes routing_tables_ignored device_list
|
||||
@@ -714,7 +714,7 @@ prepare_env() {
|
||||
# Generate /var/ipsec/strongswan.conf
|
||||
swan_reset
|
||||
swan_xappend0 "# generated by /etc/init.d/swanctl"
|
||||
config_foreach config_ipsec ipsec
|
||||
config_strongswan_generate globals
|
||||
|
||||
# Generate /var/swanctl/swanctl.conf
|
||||
swanctl_reset
|
||||
|
||||
Reference in new issue
Block a user