From b4773385a48235d444b12adc2b04caccbfd96ac5 Mon Sep 17 00:00:00 2001
From: Aleksander <hello@serpentiel.me>
Date: Fri, 17 Jul 2020 22:10:31 +0300
Subject: [PATCH] Updated client name input restrictions and hint

---
 openvpn-install.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openvpn-install.sh b/openvpn-install.sh
index 9ddcbb8..9242f41 100755
--- a/openvpn-install.sh
+++ b/openvpn-install.sh
@@ -1052,9 +1052,9 @@ verb 3" >>/etc/openvpn/client-template.txt
 function newClient() {
 	echo ""
 	echo "Tell me a name for the client."
-	echo "Use one word only, no special characters."
+	echo "The name must consist of alphanumeric character. It may also include an underscore or a dash."
 
-	until [[ $CLIENT =~ ^[a-zA-Z0-9_]+$ ]]; do
+	until [[ $CLIENT =~ ^[a-zA-Z0-9_-]+$ ]]; do
 		read -rp "Client name: " -e CLIENT
 	done