summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvindenesen <vindenesen@gmail.com>2019-09-20 13:52:44 +0200
committervindenesen <vindenesen@gmail.com>2019-09-20 13:52:44 +0200
commit87500058e11f6846a5ba18dfa17ea685bcdca5ae (patch)
treeb78155ad1e43108a543cdad08db1788108c4a4b6
parent9334c9428c4dcf8d575bfb50d6a33d10b67b5e14 (diff)
downloadvyos-1x-87500058e11f6846a5ba18dfa17ea685bcdca5ae.tar.gz
vyos-1x-87500058e11f6846a5ba18dfa17ea685bcdca5ae.zip
OpenVPN - changed tls-minimum-version to tls-version-min
-rw-r--r--interface-definitions/interfaces-openvpn.xml2
-rwxr-xr-xsrc/conf_mode/interface-openvpn.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/interface-definitions/interfaces-openvpn.xml b/interface-definitions/interfaces-openvpn.xml
index 39fa8e6a6..f11f27e23 100644
--- a/interface-definitions/interfaces-openvpn.xml
+++ b/interface-definitions/interfaces-openvpn.xml
@@ -543,7 +543,7 @@
<help>File containing this host's private key</help>
</properties>
</leafNode>
- <leafNode name="minimum-tls-version">
+ <leafNode name="tls-version-min">
<properties>
<help>Specify the minimum required TLS version</help>
<completionHelp>
diff --git a/src/conf_mode/interface-openvpn.py b/src/conf_mode/interface-openvpn.py
index 495ddfdf5..984410eb1 100755
--- a/src/conf_mode/interface-openvpn.py
+++ b/src/conf_mode/interface-openvpn.py
@@ -568,8 +568,8 @@ def get_config():
openvpn['tls'] = True
# Minimum required TLS version
- if conf.exists('tls minimum-tls-version'):
- openvpn['tls_version_min'] = conf.return_value('tls minimum-tls-version')
+ if conf.exists('tls tls-version-min'):
+ openvpn['tls_version_min'] = conf.return_value('tls tls-version-min')
if conf.exists('shared-secret-key-file'):
openvpn['shared_secret_file'] = conf.return_value('shared-secret-key-file')