mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-21 16:52:04 -07:00
Fixing bug
This commit is contained in:
@@ -138,7 +138,7 @@ class RateLimits {
|
||||
// Apply paid-access rate limits based on key/IP
|
||||
if (
|
||||
key.toString().indexOf('172.17.') > -1 ||
|
||||
key.toString.indexOf('::ffff:127.0.0.1') > -1
|
||||
key.toString().indexOf('::ffff:127.0.0.1') > -1
|
||||
) {
|
||||
pointsToConsume = 1
|
||||
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
||||
|
||||
Reference in New Issue
Block a user