mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 21:24:31 +04:00
strongswan: Fix PSK's when using multiple connections
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
(cherry picked from commit 796443267f)
Signed-off-by: Richard Muzik <richard.muzik@nic.cz>
This commit is contained in:
committed by
Josef Schlehofer
parent
a418ee972f
commit
b6c76633c2
@@ -544,12 +544,12 @@ config_connection() {
|
|||||||
swanctl_xappend0 ""
|
swanctl_xappend0 ""
|
||||||
|
|
||||||
swanctl_xappend0 "secrets {"
|
swanctl_xappend0 "secrets {"
|
||||||
swanctl_xappend1 "ike {"
|
swanctl_xappend1 "ike-$config_name {"
|
||||||
swanctl_xappend2 "secret = $pre_shared_key"
|
swanctl_xappend2 "secret = $pre_shared_key"
|
||||||
if [ -n "$local_id" ]; then
|
if [ -n "$local_identifier" ]; then
|
||||||
swanctl_xappend2 "id1 = $local_id"
|
swanctl_xappend2 "id1 = $local_identifier"
|
||||||
if [ -n "$remote_id" ]; then
|
if [ -n "$remote_identifier" ]; then
|
||||||
swanctl_xappend2 "id2 = $remote_id"
|
swanctl_xappend2 "id2 = $remote_identifier"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
swanctl_xappend1 "}"
|
swanctl_xappend1 "}"
|
||||||
|
|||||||
Reference in New Issue
Block a user