Adding Client warning to wireguard-install.sh
Added warnings to wireguard-install.sh for max Characters and removed Characters. Should alleviate #114.
This commit is contained in:
parent
98f45f883c
commit
7a2f54b471
1 changed files with 4 additions and 0 deletions
|
@ -242,6 +242,8 @@ if [[ ! -e /etc/wireguard/wg0.conf ]]; then
|
|||
done
|
||||
[[ -z "$port" ]] && port="51820"
|
||||
echo
|
||||
echo "Allowed Characters are 0-9 a-z A-Z _ - all other Characters will be removed without asking!"
|
||||
echo "If you use a Linux Client, please use max. 15 Characters or you have to manually shorten the config File name afterwards."
|
||||
echo "Enter a name for the first client:"
|
||||
read -p "Name [client]: " unsanitized_client
|
||||
# Allow a limited set of characters to avoid conflicts
|
||||
|
@ -538,6 +540,8 @@ else
|
|||
case "$option" in
|
||||
1)
|
||||
echo
|
||||
echo "Allowed Characters are 0-9 a-z A-Z _ - all other Characters will be removed without asking!"
|
||||
echo "If you use a Linux Client, please use max. 15 Characters or you have to manually shorten the config File name afterwards."
|
||||
echo "Provide a name for the client:"
|
||||
read -p "Name: " unsanitized_client
|
||||
# Allow a limited set of characters to avoid conflicts
|
||||
|
|
Loading…
Add table
Reference in a new issue