summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjjakob <jernej.jakob@gmail.com>2020-04-08 17:50:46 +0200
committerjjakob <jernej.jakob@gmail.com>2020-04-08 17:50:46 +0200
commitef27cef024d11ab22ca455aa18ee8df690abe76b (patch)
tree942630fc591b6f9b400987548dbba25fbf65e385 /src
parent3d65f12e38f721ae37b65e058f0c59a24d6a6886 (diff)
downloadvyos-1x-ef27cef024d11ab22ca455aa18ee8df690abe76b.tar.gz
vyos-1x-ef27cef024d11ab22ca455aa18ee8df690abe76b.zip
openvpn: T2234: clean up and rework openvpn template
- rearranged options to put them in logical groups separated by blank lines - removed unnecessary blank lines (whitespace) - fixed encryption if-else comparison logic that caused 3des to be ignored - set tls if tls-version-min is set
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-openvpn.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-openvpn.py b/src/conf_mode/interfaces-openvpn.py
index e9b40bb38..f34e4f7fe 100755
--- a/src/conf_mode/interfaces-openvpn.py
+++ b/src/conf_mode/interfaces-openvpn.py
@@ -428,6 +428,7 @@ def get_config():
# Minimum required TLS version
if conf.exists('tls tls-version-min'):
openvpn['tls_version_min'] = conf.return_value('tls tls-version-min')
+ openvpn['tls'] = True
if conf.exists('shared-secret-key-file'):
openvpn['shared_secret_file'] = conf.return_value('shared-secret-key-file')