From 929cdeed5e4e630d73801a4ff4a054f2680e46a8 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 31 Oct 2020 16:03:18 +0100 Subject: openvpn: T2994: bugfix evaluating replace-default-route in template --- data/templates/openvpn/server.conf.tmpl | 4 ++-- 1 file 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 %} -- cgit v1.2.3