Added IPv6 support to client script

Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
Tilo Spannagel 2017-02-03 21:15:41 +01:00
parent 1d2a2e8b29
commit abdf537da5
No known key found for this signature in database
GPG Key ID: B89F1626A58E1429
1 changed files with 9 additions and 2 deletions

View File

@ -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 "