mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bde809d62d | ||
|
|
c664758654 | ||
|
|
b4823be86a |
@@ -136,7 +136,10 @@ class RateLimits {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apply paid-access rate limits based on key/IP
|
// Apply paid-access rate limits based on key/IP
|
||||||
if (key.toString().indexOf('172.17.') > -1) {
|
if (
|
||||||
|
key.toString().indexOf('172.17.') > -1 ||
|
||||||
|
key.toString().indexOf('::ffff:127.0.0.1') > -1
|
||||||
|
) {
|
||||||
pointsToConsume = 1
|
pointsToConsume = 1
|
||||||
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user