Compare commits

..
2 Commits
Author SHA1 Message Date
Chris Troutner 65356051f8 Merge pull request #58 from Permissionless-Software-Foundation/ct-unstable
fix(rate limits): Adding local server back to whitelist
2020-11-11 19:16:07 -08:00
Chris Troutner 9728b64edb fix(rate limits): Adding local server back to whitelist 2020-11-11 18:59:48 -08:00
+4 -2
View File
@@ -154,9 +154,11 @@ class RateLimits {
// For internal calls, increase rate limits to as fast as possible. // For internal calls, increase rate limits to as fast as possible.
if ( if (
key.toString().indexOf('172.17.') > -1
// Comment out the line below when running bch-js e2e rate limit tests. // Comment out the line below when running bch-js e2e rate limit tests.
// key.toString().indexOf('::ffff:127.0.0.1') > -1 key.toString().indexOf('::ffff:127.0.0.1') > -1 ||
// Do not comment out this line.
key.toString().indexOf('172.17.') > -1
) { ) {
pointsToConsume = 1 pointsToConsume = 1
res.locals.pointsToConsume = pointsToConsume // Feedback for tests. res.locals.pointsToConsume = pointsToConsume // Feedback for tests.