diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-04-18 12:25:31 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-04-18 12:25:31 +0200 |
commit | 297fd814528bb1a8c570174a9bac0f2d7dd69351 (patch) | |
tree | a084d6802efb76208b3dd542bd61a2911d4a004b /data/templates/openvpn/service-override.conf.j2 | |
parent | f2b722a8879231383f8b0eaf92fda09eb121d78d (diff) | |
download | vyos-1x-297fd814528bb1a8c570174a9bac0f2d7dd69351.tar.gz vyos-1x-297fd814528bb1a8c570174a9bac0f2d7dd69351.zip |
openvpn: T4351: bugfix of initial value on Jinja2 namespace
Commit f2b722a8 ("openvpn: T4353: T4351: fix generation of openvpn-option
string passed to daemon") changed how the openvpn-option CLI node is processed.
Unfortunantely the initial value of the namespace must be '' instead of 0.
Diffstat (limited to 'data/templates/openvpn/service-override.conf.j2')
-rw-r--r-- | data/templates/openvpn/service-override.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/service-override.conf.j2 b/data/templates/openvpn/service-override.conf.j2 index d7551eb92..616ba3bfc 100644 --- a/data/templates/openvpn/service-override.conf.j2 +++ b/data/templates/openvpn/service-override.conf.j2 @@ -1,4 +1,4 @@ -{% set options = namespace(value=0) %} +{% set options = namespace(value='') %} {% if openvpn_option is vyos_defined %} {% for option in openvpn_option %} {# Remove the '--' prefix from variable if it is presented #} |