mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
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');
|
$rate_limiting = $CI->config->item('rate_limiting');
|
||||||
|
|
||||||
if ( ! $rate_limiting)
|
if ( ! $rate_limiting || is_cli())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue