From: Florian Eckert Date: Thu, 23 Jul 2026 06:00:09 +0000 (+0200) Subject: strongswan: reorder local var in config_remote function X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=7f341b3afc0b82f333251e81d32a8c17d07cfa0a;p=openwrt-packages.git strongswan: reorder local var in config_remote function 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 --- diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index a2b5a8a9c..6e345a4c1 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -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