diff options
author | Christian Breunig <christian@breunig.cc> | 2024-11-26 07:49:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-26 07:49:51 +0100 |
commit | f3a46fc296a488b3748182288b1cff4df39c4971 (patch) | |
tree | 5694564e12f2b2b04813a32419917d1526178001 /data/templates | |
parent | efd86e5cbaf2cae68e431b83f6ca6c0093672e89 (diff) | |
parent | 5c7647bcc242d4b26cd9afdde1f084ef93916727 (diff) | |
download | vyos-1x-f3a46fc296a488b3748182288b1cff4df39c4971.tar.gz vyos-1x-f3a46fc296a488b3748182288b1cff4df39c4971.zip |
Merge pull request #4198 from sever-sever/T264
T264: IPsec add base64 encoded secret-type feature
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/ipsec/swanctl.conf.j2 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl.conf.j2 b/data/templates/ipsec/swanctl.conf.j2 index 698a9135e..64e7ea860 100644 --- a/data/templates/ipsec/swanctl.conf.j2 +++ b/data/templates/ipsec/swanctl.conf.j2 @@ -87,7 +87,11 @@ secrets { id-{{ gen_uuid }} = "{{ id }}" {% endfor %} {% endif %} +{% if psk_config.secret_type is vyos_defined('base64') %} + secret = 0s{{ psk_config.secret }} +{% elif psk_config.secret_type is vyos_defined('plaintext') %} secret = "{{ psk_config.secret }}" +{% endif %} } {% endfor %} {% endif %} |