We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d642b commit 738b8a2Copy full SHA for 738b8a2
src/Middleware/BlockBots.php
@@ -140,7 +140,9 @@ private function isWhitelisted()
140
if (in_array($this->client->ip, $this->options->whitelist_ips)) {
141
//Add this to the redis list as it is faster
142
Redis::sadd($this->options->whitelist_key, $this->client->ip);
143
- ProcessLogWithIpInfo::dispatch($this->client, 'WHITELISTED', $this->options);
+ if ($this->options->log) {
144
+ ProcessLogWithIpInfo::dispatch($this->client, 'WHITELISTED', $this->options);
145
+ }
146
return true;
147
}
148
0 commit comments