Skip to content

Commit

Permalink
fix(config): set tls-auth and tls-crypt independentyl of ta_content
Browse files Browse the repository at this point in the history
  • Loading branch information
alxwr committed Jun 20, 2019
1 parent d0a5b81 commit d3787b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openvpn/files/common_opts.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ dh {{ config.dh }}
dh dh1024.pem
{%- endif %}

{%- if config.ta_content is defined and config.tls_crypt is defined %}
{%- if config.tls_crypt is defined %}
tls-crypt {{ config.tls_crypt }}
{%- elif config.ta_content is defined and config.tls_auth is defined %}
{%- elif config.tls_auth is defined %}
tls-auth {{ multipart_param(config.tls_auth) }}
{%- endif %}

Expand Down

0 comments on commit d3787b6

Please sign in to comment.