]> git.99rst.org Git - openwrt-packages.git/commit
strongswan: rename 'remote_gateway' to 'remote_addrs'
authorFlorian Eckert <redacted>
Thu, 23 Jul 2026 13:30:23 +0000 (15:30 +0200)
committerFlorian Eckert <redacted>
Mon, 3 Aug 2026 09:07:41 +0000 (11:07 +0200)
commitb0c5835445ff3cf471179f2bf4df1e6ab1ce8932
treebad0b407c9edc361eb80a3e35545c713c309e39e
parentd43fa0cbd49796ecc53fd7f606ba3bf84dc39164
strongswan: rename 'remote_gateway' to 'remote_addrs'

Rename the 'remote_gateway' UCI option to 'remote_addrs' to match
the 'swanctl.conf' 'remote_addrs' directive, which accepts one or
more peer addresses rather than a single gateway. The previous
name implied a single value and did not reflect that multiple
remote addresses can be configured for a connection.

Store the option as a UCI list to allow specifying multiple
remote addresses, consistent with how 'local_subnet' and
'remote_subnet' are already handled.

Add a uci-defaults migration script to convert existing
'remote_gateway' entries (whether stored as a plain option or as
a list) to a 'remote_addrs' list on upgrade.

If the 'remote_addrs' option is empty, strongswan implicitly uses the value
'%any'. In the `swanctl.conf` documentation, '%any' is already the default
value for 'remote_addrs' if the directive is not specified at all.

Signed-off-by: Florian Eckert <redacted>
net/strongswan/files/etc/uci-defaults/strongswan
net/strongswan/files/swanctl.init
git clone https://git.99rst.org/PROJECT