This commit is contained in:
Your Name 2024-09-25 14:17:42 -06:00
parent ed51b56bb9
commit c5f631d934
2 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ start() {
$NFT insert rule filter input iif docker0 accept
#HTTP Rate Limit
bash $MODULES/module-rate-limit.sh $HTTP_LIMIT
bash $MODULES/module-rate-limit-web.sh $HTTP_LIMIT
else
virtualization
@ -287,7 +287,7 @@ forgive() {
echo "Clearing old $TMP_BLOCK"
redis-cli DEL tmp_blocked
bash $MODULES/module-rate-limit.sh $HTTP_LIMIT
bash $MODULES/module-rate-limit-web.sh $HTTP_LIMIT
}
watch() {
@ -329,9 +329,9 @@ watch() {
BLOCK_CHECK=$(redis-cli --raw SMEMBERS tmp_block)
if [[ "$BLOCK_CHECK" == *"empty"* || "$BLOCK_CHECK" == "" ]]; then
bash $MODULES/module-rate-limit.sh $HTTP_LIMIT
bash $MODULES/module-rate-limit-web.sh $HTTP_LIMIT
else
bash $MODULES/module-rate-limit.sh $RATE_LIMITED_HTTP
bash $MODULES/module-rate-limit-web.sh $RATE_LIMITED_HTTP
sleep $TMP_BLOCK_TIMEOUT
forgive
fi