Skip to content

Commit

Permalink
T6486: generate OpenVPN use data-ciphers instead of ncp-ciphers
Browse files Browse the repository at this point in the history
In the PR #3823 the ncp-ciphers
were replaced with `data-ciphers`
fix template for "generate openvpn client-config"
  • Loading branch information
sever-sever committed Aug 2, 2024
1 parent 962ead6 commit 47f51b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/op_mode/generate_ovpn_client_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
} %}
{% if encryption is defined and encryption is not none %}
{% if encryption.ncp_ciphers is defined and encryption.ncp_ciphers is not none %}
cipher {% for algo in encryption.ncp_ciphers %}
{% if encryption.data_ciphers is defined and encryption.data_ciphers is not none %}
cipher {% for algo in encryption.data_ciphers %}
{{ encryption_map[algo] if algo in encryption_map.keys() else algo }}{% if not loop.last %}:{% endif %}
{% endfor %}
data-ciphers {% for algo in encryption.ncp_ciphers %}
data-ciphers {% for algo in encryption.data_ciphers %}
{{ encryption_map[algo] if algo in encryption_map.keys() else algo }}{% if not loop.last %}:{% endif %}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit 47f51b5

Please sign in to comment.