From abdf537da5cf5153fd6a10afa01d7ef97751b9df Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Fri, 3 Feb 2017 21:15:41 +0100 Subject: [PATCH] Added IPv6 support to client script Signed-off-by: Tilo Spannagel --- bin/ovpn_getclient | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/bin/ovpn_getclient b/bin/ovpn_getclient index d2674da..f57686b 100755 --- a/bin/ovpn_getclient +++ b/bin/ovpn_getclient @@ -37,8 +37,15 @@ nobind dev $OVPN_DEVICE key-direction 1 remote-cert-tls server -remote $OVPN_CN $OVPN_PORT $OVPN_PROTO -$OVPN_ADDITIONAL_CLIENT_CONFIG + +remote $OVPN_CN $OVPN_PORT $OVPN_PROTO" + if [ "$OVPN_PROTO" == "udp6" ]; then + echo "remote $OVPN_CN $OVPN_PORT udp" + fi + if [ "$OVPN_PROTO" == "tcp6" ]; then + echo "remote $OVPN_CN $OVPN_PORT tcp" + fi + echo "$OVPN_ADDITIONAL_CLIENT_CONFIG " if [ "$mode" == "combined" ]; then echo "