Skip to content

Commit db30bdb

Browse files
author
Bruno Cabral
committed
Use get in gets to print the correct number
1 parent 086357c commit db30bdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jobs/ProcessLogWithIpInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function handle()
4848
$user_agent = $this->user_agent;
4949
$ip = $this->ip;
5050
$key_access_count = "block_bot:{$ip}";
51-
$number_of_requests = Redis::exists($key_access_count);
51+
$number_of_requests = Redis::get($key_access_count);
5252

5353
$host = strtolower(gethostbyaddr($ip));
5454
$messsage = "[Block-Bots] IP: {$ip}; After {$number_of_requests} requests , Host:{$host} \n with User agent: {$user_agent}; was {$this->action}";

0 commit comments

Comments
 (0)