diff options
author | Christian Breunig <christian@breunig.cc> | 2023-01-12 19:40:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 19:40:42 +0100 |
commit | 521fef5f0aded11e2341fe893ecf4b1a206dcfc2 (patch) | |
tree | 9af2913a50138003a93cb9360b43f81912320389 /data/templates | |
parent | 0b59afbb9fd06abf87ed340f05b977e52e516266 (diff) | |
parent | 01386606982352de7eb51f55acc11c6a58ed4cef (diff) | |
download | vyos-1x-521fef5f0aded11e2341fe893ecf4b1a206dcfc2.tar.gz vyos-1x-521fef5f0aded11e2341fe893ecf4b1a206dcfc2.zip |
Merge pull request #1752 from sever-sever/T4118
T4118: Add default value any for connection remote-id
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ipsec/swanctl/peer.j2 | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/data/templates/ipsec/swanctl/peer.j2 b/data/templates/ipsec/swanctl/peer.j2 index 837fa263c..9d95271fe 100644 --- a/data/templates/ipsec/swanctl/peer.j2 +++ b/data/templates/ipsec/swanctl/peer.j2 @@ -45,11 +45,7 @@ {% endif %} } remote { -{% if peer_conf.authentication.remote_id is vyos_defined %} id = "{{ peer_conf.authentication.remote_id }}" -{% else %} - id = "{{ peer }}" -{% endif %} auth = {{ 'psk' if peer_conf.authentication.mode == 'pre-shared-secret' else 'pubkey' }} {% if peer_conf.authentication.mode == 'rsa' %} pubkeys = {{ peer_conf.authentication.rsa.remote_key }}.pem |