From bb85f9be4301c619aa632499455b777ea077bc70 Mon Sep 17 00:00:00 2001 From: Whispering Wind <151555003+ReturnFI@users.noreply.github.com> Date: Thu, 7 Nov 2024 19:40:29 +0330 Subject: [PATCH] Delay for Blocked Users A sleep 20 command is added to introduce a small delay when a blocked user attempts to connect. --- core/scripts/hysteria2/user.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/scripts/hysteria2/user.sh b/core/scripts/hysteria2/user.sh index 95c5a88..f185e8e 100644 --- a/core/scripts/hysteria2/user.sh +++ b/core/scripts/hysteria2/user.sh @@ -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