From ef4b2f8005e793cf6780ca2fb084dd4ded961d8a Mon Sep 17 00:00:00 2001 From: jomo Date: Sat, 12 Dec 2020 22:49:31 +0100 Subject: [PATCH] fix an issue with rate limiting --- lib/networking.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/networking.js b/lib/networking.js index 96f90ae..916d19d 100644 --- a/lib/networking.js +++ b/lib/networking.js @@ -41,7 +41,7 @@ exp.resetCounter = function() { // callback: the body, response, // and error buffer. get_from helper method is available exp.get_from_options = function(rid, url, options, callback) { - var is_session_req = config.sessions_rate_limit && url.startsWith(session_url); + var is_session_req = config.server.sessions_rate_limit && url.startsWith(session_url); // This is to prevent being blocked by CloudFront for exceeding the rate limit if (is_session_req && req_count() >= config.server.sessions_rate_limit) {