Skip to content

Commit

Permalink
adjust defaults for rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
djschilling committed Jun 4, 2024
1 parent 9d1f45d commit b3d821c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctldap.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ function checkRateLimit(site, windowInSeconds, maxRequests) {
*/
function apiPost(site, func, data, triedLogin, triedCSRFUpdate) {
logInfo(site, "Performing request to API function "+func);
checkRateLimit(site, 60 * 10, site.requests10Minutes? site.requests10Minutes: 100);
checkRateLimit(site, 60 * 60, site.requests60Minutes? site.requests60Minutes: 200);
checkRateLimit(site, 60 * 10, site.requests10Minutes? site.requests10Minutes: 150);
checkRateLimit(site, 60 * 60, site.requests60Minutes? site.requests60Minutes: 300);
return rp({
"method": "POST",
"jar": site.cookieJar,
Expand Down

0 comments on commit b3d821c

Please sign in to comment.