diff options
author | jjakob <jernej.jakob@gmail.com> | 2020-04-08 17:50:46 +0200 |
---|---|---|
committer | jjakob <jernej.jakob@gmail.com> | 2020-04-08 17:50:46 +0200 |
commit | ef27cef024d11ab22ca455aa18ee8df690abe76b (patch) | |
tree | 942630fc591b6f9b400987548dbba25fbf65e385 /src | |
parent | 3d65f12e38f721ae37b65e058f0c59a24d6a6886 (diff) | |
download | vyos-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-x | src/conf_mode/interfaces-openvpn.py | 1 |
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') |