Skip to content

Commit 1d2a2e8

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/ovpn_genconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ done
238238
[ ${#TMP_DNS_SERVERS[@]} -gt 0 ] && OVPN_DNS_SERVERS=("${TMP_DNS_SERVERS[@]}")
239239

240240
# Server name is in the form "udp://vpn.example.com:1194"
241-
if [[ "${OVPN_SERVER_URL:-}" =~ ^((udp|tcp)://)?([0-9a-zA-Z\.\-]+)(:([0-9]+))?$ ]]; then
241+
if [[ "${OVPN_SERVER_URL:-}" =~ ^((udp|tcp|udp6|tcp6)://)?([0-9a-zA-Z\.\-]+)(:([0-9]+))?$ ]]; then
242242
OVPN_PROTO=${BASH_REMATCH[2]};
243243
OVPN_CN=${BASH_REMATCH[3]};
244244
OVPN_PORT=${BASH_REMATCH[5]};

0 commit comments

Comments
 (0)