Skip to content

Commit abdf537

Browse files
committed
Added IPv6 support to client script
Signed-off-by: Tilo Spannagel <[email protected]>
1 parent 1d2a2e8 commit abdf537

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

bin/ovpn_getclient

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,15 @@ nobind
3737
dev $OVPN_DEVICE
3838
key-direction 1
3939
remote-cert-tls server
40-
remote $OVPN_CN $OVPN_PORT $OVPN_PROTO
41-
$OVPN_ADDITIONAL_CLIENT_CONFIG
40+
41+
remote $OVPN_CN $OVPN_PORT $OVPN_PROTO"
42+
if [ "$OVPN_PROTO" == "udp6" ]; then
43+
echo "remote $OVPN_CN $OVPN_PORT udp"
44+
fi
45+
if [ "$OVPN_PROTO" == "tcp6" ]; then
46+
echo "remote $OVPN_CN $OVPN_PORT tcp"
47+
fi
48+
echo "$OVPN_ADDITIONAL_CLIENT_CONFIG
4249
"
4350
if [ "$mode" == "combined" ]; then
4451
echo "

0 commit comments

Comments
 (0)