summaryrefslogtreecommitdiff
path: root/data/templates/openvpn
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-09-03 03:23:28 -0500
committerKim Hagen <kim@sentrium.io>2021-09-03 03:23:28 -0500
commit65b55f35f836185ffbf589c5ea5a6ee89568957e (patch)
tree9874b4afc36219a3cffed008d5dabc6ada56e6ad /data/templates/openvpn
parente3c71af1466da42403fa23bc23e7e530df71c6c8 (diff)
downloadvyos-1x-65b55f35f836185ffbf589c5ea5a6ee89568957e.tar.gz
vyos-1x-65b55f35f836185ffbf589c5ea5a6ee89568957e.zip
fix file location and use correct variable
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r--data/templates/openvpn/server.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index 4c5dbc2c5..e6dd9fcbc 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -133,7 +133,7 @@ plugin "/usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-otp.so" "otp_secrets=/
{{- server['2fa']['totp']['t0']|default(0) }} totp_step=
{{- server['2fa']['totp']['step']|default(30) }} totp_digits=
{{- server['2fa']['totp']['digits']|default(6)}} password_is_cr=
-{%-if server['2fa']['totp']['challenge']|default('enabled') == 'enabled' %}1{% else %}0{% endif %}"
+{%-if server['2fa']['totp']['challenge']|default('enable') == 'enable' %}1{% else %}0{% endif %}"
{% endif %}
{% endif %}
{% else %}