]> git.99rst.org Git - openwrt-packages.git/commitdiff
strongswan: reorder local var in config_child function
authorFlorian Eckert <redacted>
Thu, 23 Jul 2026 05:57:39 +0000 (07:57 +0200)
committerFlorian Eckert <redacted>
Mon, 3 Aug 2026 09:07:41 +0000 (11:07 +0200)
The local variables were completely jumbled. To keep track of them, they
have been sorted to the order in which the following 'config_get' calls
are made.

No functional change.

Signed-off-by: Florian Eckert <redacted>
net/strongswan/files/swanctl.init

index 13a7a1278d6e265f95bfb0a43436cd48ea772883..a2b5a8a9c69929514964aa5c0848b8e35cae5a0f 100644 (file)
@@ -225,26 +225,26 @@ config_child() {
        local conf="$1"
        local mode="$2"
 
-       local hw_offload
-       local interface
-       local ipcomp
-       local priority
-       local local_subnet
+       local startaction
        local local_nat
        local updown
        local firewall
-       local remote_subnet
        local lifetime
        local dpdaction
        local closeaction
-       local startaction
        local if_id
        local rekeytime
+       local ipcomp
+       local interface
+       local hw_offload
+       local priority
        local rekeybytes
        local lifebytes
        local rekeypackets
        local lifepackets
        local replay_window
+       local local_subnet
+       local remote_subnet
 
        config_get startaction "$conf" startaction "route"
        config_get local_nat "$conf" local_nat ""
git clone https://git.99rst.org/PROJECT