1
0
mirror of synced 2025-03-03 19:33:16 +03:00

Improve VPN users

- Check VPN users for duplicates in the helper script
This commit is contained in:
hwdsl2 2019-01-13 11:51:47 -06:00
parent 39e9223d91
commit d382350bde

View File

@ -82,6 +82,10 @@ case "$VPN_USERS $VPN_PASSWORDS" in
;;
esac
if printf '%s' "$VPN_USERS" | tr ' ' '\n' | sort | uniq -c | grep -qv '^ *1 '; then
exiterr "VPN usernames must not contain duplicates."
fi
clear
cat <<'EOF'