We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f487184 commit 1d2a2e8Copy full SHA for 1d2a2e8
bin/ovpn_genconfig
@@ -238,7 +238,7 @@ done
238
[ ${#TMP_DNS_SERVERS[@]} -gt 0 ] && OVPN_DNS_SERVERS=("${TMP_DNS_SERVERS[@]}")
239
240
# 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
+if [[ "${OVPN_SERVER_URL:-}" =~ ^((udp|tcp|udp6|tcp6)://)?([0-9a-zA-Z\.\-]+)(:([0-9]+))?$ ]]; then
242
OVPN_PROTO=${BASH_REMATCH[2]};
243
OVPN_CN=${BASH_REMATCH[3]};
244
OVPN_PORT=${BASH_REMATCH[5]};
0 commit comments