Skip to content

Commit 705707b

Browse files
author
Filippo Montani
committed
not equal instead of less than again
1 parent 96410fb commit 705707b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listeners/BlockIp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function handle(AttackDetected $event)
2626
->where('middleware', $event->log->middleware)
2727
->whereBetween('created_at', [$start, $end])->count();
2828

29-
if ($count < config('firewall.middleware.' . $event->log->middleware . '.auto_block.attempts')) {
29+
if ($count != config('firewall.middleware.' . $event->log->middleware . '.auto_block.attempts')) {
3030
return;
3131
}
3232

0 commit comments

Comments
 (0)