summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2021-11-01 20:03:39 +0100
committerGitHub <noreply@github.com>2021-11-01 20:03:39 +0100
commitbcc65559cc1d2f78e000bb733c8d87e4dcdc1326 (patch)
tree823afa49c29fee007fde58d3caf10cba80cf7252 /src/conf_mode
parentf52ca36b3746ad7e2ce8d6e57d432b5b2cd9d6cc (diff)
parent5369a44789caf86fc0b630c4a0969bf3bfa8d608 (diff)
downloadvyos-1x-bcc65559cc1d2f78e000bb733c8d87e4dcdc1326.tar.gz
vyos-1x-bcc65559cc1d2f78e000bb733c8d87e4dcdc1326.zip
Merge pull request #1059 from UnicronNL/current
openvpn: T3958: OpenVPN breaks the smoketests
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index 0e915a9c8..735b39ba3 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -99,7 +99,7 @@ def get_config(config=None):
# originate comes with defaults, which will enable the
# totp plugin, even when not set via CLI so we
# need to check this first and drop those keys
- if 'totp' not in tmp_openvpn['server']:
+ if dict_search('server.totp', tmp_openvpn) == None:
del openvpn['server']['mfa']['totp']
return openvpn