mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 09:12:05 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a260f7506a | ||
|
|
9684441d92 |
@@ -146,10 +146,9 @@ class RateLimits {
|
|||||||
// apply paid-access rate limits.
|
// apply paid-access rate limits.
|
||||||
if (
|
if (
|
||||||
origin &&
|
origin &&
|
||||||
(origin.toString().indexOf('wallet.fullstack.cash') > -1 ||
|
(origin.toString().indexOf('fullstack.cash') > -1 ||
|
||||||
origin.toString().indexOf('sandbox.fullstack.cash') > -1 ||
|
|
||||||
origin.toString().indexOf('splitbch.com') > -1 ||
|
origin.toString().indexOf('splitbch.com') > -1 ||
|
||||||
origin === 'slp-api')
|
origin.toString().indexOf('slp-api') > -1)
|
||||||
) {
|
) {
|
||||||
pointsToConsume = 10
|
pointsToConsume = 10
|
||||||
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
res.locals.pointsToConsume = pointsToConsume // Feedback for tests.
|
||||||
@@ -159,7 +158,6 @@ class RateLimits {
|
|||||||
if (
|
if (
|
||||||
// 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.
|
// Do not comment out this line.
|
||||||
key.toString().indexOf('172.17.') > -1
|
key.toString().indexOf('172.17.') > -1
|
||||||
) {
|
) {
|
||||||
|
|||||||
Reference in New Issue
Block a user