Apply rate-limiting only to HTTP requests

This commit is contained in:
Alex Tselegidis 2022-06-19 14:49:18 +01:00
parent 6b821792fa
commit bf78545752

View file

@ -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;
} }