Delay for Blocked Users

A sleep 20 command is added to introduce a small delay when a blocked user attempts to connect.
This commit is contained in:
Whispering Wind
2024-11-07 19:40:29 +03:30
committed by GitHub
parent a6152f8aff
commit bb85f9be43

View File

@ -16,10 +16,12 @@ BLOCKED=$(jq -r --arg user "$USERNAME" '.[$user].blocked' "$USERS_FILE")
CURRENT_DOWNLOAD_BYTES=$(jq -r --arg user "$USERNAME" '.[$user].download_bytes' "$USERS_FILE")
if [ "$BLOCKED" == "true" ]; then
sleep 20
exit 1
fi
if [ "$STORED_PASSWORD" != "$PASSWORD" ]; then
sleep 20
exit 1
fi