strongswan: Fix pools to be only generated once
authorMartin Pecka <peci1@seznam.cz>
Sun, 7 Jan 2024 22:23:57 +0000 (23:23 +0100)
committerPhilip Prindeville <philipp@redfish-solutions.com>
Tue, 19 Nov 2024 16:05:33 +0000 (08:05 -0800)
commit6b824ee7d71f6c4e001a8ec41aa47d97860c9fae
tree1f351c6fedd80f389628727484311bb86b0e11ed
parent4b9453b9a4c865f5eb722761a1f7120d954a1b57
strongswan: Fix pools to be only generated once

Before this commit, if a user configures multiple remotes in UCI,
each remote generates one output section of pools.
This doesn't hurt because swanctl just merges all of them,
but it is apparently not needed to have N copies of the same.

This commit changes the behavior to only create one pools
section at the end of the generated swanctl config.

Signed-off-by: Martin Pecka <peci1@seznam.cz>
Signed-off-by: Martin Pecka <peckama2@fel.cvut.cz>
net/strongswan/files/swanctl.init