mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
Merge pull request #19865 from pprindeville/issue#19757
strongswan: Fix PSK's when using multiple connections
This commit is contained in:
@@ -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 "}"
|
||||
|
||||
Reference in New Issue
Block a user