From 796443267f797ddd2a219a5699097a9b215680a4 Mon Sep 17 00:00:00 2001 From: Philip Prindeville Date: Tue, 8 Nov 2022 20:07:48 -0700 Subject: [PATCH] strongswan: Fix PSK's when using multiple connections Signed-off-by: Philip Prindeville --- net/strongswan/files/swanctl.init | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/strongswan/files/swanctl.init b/net/strongswan/files/swanctl.init index 14b56e838..9d34b1041 100644 --- a/net/strongswan/files/swanctl.init +++ b/net/strongswan/files/swanctl.init @@ -544,12 +544,12 @@ config_connection() { swanctl_xappend0 "" swanctl_xappend0 "secrets {" - swanctl_xappend1 "ike {" + swanctl_xappend1 "ike-$config_name {" swanctl_xappend2 "secret = $pre_shared_key" - if [ -n "$local_id" ]; then - swanctl_xappend2 "id1 = $local_id" - if [ -n "$remote_id" ]; then - swanctl_xappend2 "id2 = $remote_id" + if [ -n "$local_identifier" ]; then + swanctl_xappend2 "id1 = $local_identifier" + if [ -n "$remote_identifier" ]; then + swanctl_xappend2 "id2 = $remote_identifier" fi fi swanctl_xappend1 "}"