]> git.99rst.org Git - openwrt-packages.git/commitdiff
strongswan: reorder local var in config_remote function
authorFlorian Eckert <redacted>
Thu, 23 Jul 2026 06:00:09 +0000 (08:00 +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 in 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 a2b5a8a9c69929514964aa5c0848b8e35cae5a0f..6e345a4c1221c88252864d112dc7c80fa84f7d64 100644 (file)
@@ -441,13 +441,11 @@ config_remote() {
 
        local enabled
        local gateway
-       local local_sourceip
-       local local_ip
-       local local_identifier
-       local remote_gateway
-       local remote_identifier
        local pre_shared_key
        local auth_method
+       local local_identifier
+       local remote_identifier
+       local local_ip
        local keyingtries
        local dpddelay
        local encap
@@ -462,9 +460,10 @@ config_remote() {
        local overtime
        local send_cert
        local send_certreq
+       local eap_id
+       local local_sourceip
        local remote_ca_certs
        local pools
-       local eap_id
 
        config_get_bool enabled "$conf" enabled 0
        [ $enabled -eq 0 ] && return
@@ -509,6 +508,7 @@ config_remote() {
                ;;
        esac
 
+       local remote_gateway
        [ "$gateway" = "any" ] && remote_gateway="%any" || remote_gateway="$gateway"
 
        if [ -n "$local_key" ]; then
git clone https://git.99rst.org/PROJECT