fiux
This commit is contained in:
parent
ed51b56bb9
commit
c5f631d934
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user