forked from mirrors/easyappointments
Apply rate-limiting only to HTTP requests
This commit is contained in:
parent
6b821792fa
commit
bf78545752
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ if ( ! function_exists('rate_limit'))
|
|||
|
||||
$rate_limiting = $CI->config->item('rate_limiting');
|
||||
|
||||
if ( ! $rate_limiting)
|
||||
if ( ! $rate_limiting || is_cli())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue