summaryrefslogtreecommitdiff
path: root/data/templates/openvpn
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-20 21:21:36 +0200
committerGitHub <noreply@github.com>2020-04-20 21:21:36 +0200
commit3dfcc251b929d253867714694cac58158eecc036 (patch)
tree3c6f44181d897283a1e03ec5261b24bf4700523d /data/templates/openvpn
parenta972177723c523e1b2fc41fc6e4c37e8ae96e3c2 (diff)
parentfc46751976c17da34aedc591bff737c1090f2704 (diff)
downloadvyos-1x-3dfcc251b929d253867714694cac58158eecc036.tar.gz
vyos-1x-3dfcc251b929d253867714694cac58158eecc036.zip
Merge pull request #361 from jjakob/openvpn-ipv6-proto-fix
openvpn: T2339: fix for IPv4 local-host addresses
Diffstat (limited to 'data/templates/openvpn')
-rw-r--r--data/templates/openvpn/server.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index 396888c0f..75ab602f8 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -18,7 +18,7 @@ dev {{ intf }}
persist-key
iproute /usr/libexec/vyos/system/unpriv-ip
-proto {% if 'tcp-active' in protocol -%}tcp6-client{% elif 'tcp-passive' in protocol -%}tcp6-server{% else %}udp6{% endif %}
+proto {{ protocol_real }}
{%- if local_host %}
local {{ local_host }}