diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-10-31 16:03:18 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-10-31 16:03:18 +0100 |
commit | 929cdeed5e4e630d73801a4ff4a054f2680e46a8 (patch) | |
tree | 10d98fabfe7dc0cb455e723819a6a8cd59dcb093 /data/templates | |
parent | 700d03d241b7335d9c647afb114100929dfbd909 (diff) | |
download | vyos-1x-929cdeed5e4e630d73801a4ff4a054f2680e46a8.tar.gz vyos-1x-929cdeed5e4e630d73801a4ff4a054f2680e46a8.zip |
openvpn: T2994: bugfix evaluating replace-default-route in template
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/openvpn/server.conf.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl index 84836f177..7e28afc44 100644 --- a/data/templates/openvpn/server.conf.tmpl +++ b/data/templates/openvpn/server.conf.tmpl @@ -37,9 +37,9 @@ secret {{ shared_secret_key_file }} {% if persistent_tunnel is defined %} persist-tun {% endif %} -{% if redirect_gateway is defined and redirect_gateway.local is defined %} +{% if replace_default_route is defined and replace_default_route.local is defined %} push "redirect-gateway local def1" -{% elif redirect_gateway is defined %} +{% elif replace_default_route is defined %} push "redirect-gateway def1" {% endif %} {% if use_lzo_compression is defined %} |