mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 17:22:04 -07:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fb1bb0b7ed | ||
|
|
8a91f3ae3a | ||
|
|
80dc296dee | ||
|
|
f01c82631b |
@@ -136,9 +136,11 @@ class RateLimits {
|
|||||||
// For internal calls that make a lot of internal calls, like
|
// For internal calls that make a lot of internal calls, like
|
||||||
// hydrateUtxoDetails(), the origin of the caller will be passed in
|
// hydrateUtxoDetails(), the origin of the caller will be passed in
|
||||||
// via the POST body.
|
// via the POST body.
|
||||||
if (req.body && req.body.ip) {
|
const keyIsLocal = key.includes('172.17.0.1') || key.includes('127.0.0.1')
|
||||||
|
if (req.body && req.body.ip && keyIsLocal) {
|
||||||
key = req.body.ip
|
key = req.body.ip
|
||||||
}
|
}
|
||||||
|
console.log(`key: ${key}`)
|
||||||
|
|
||||||
// const pointsToConsume = userId ? 1 : 30
|
// const pointsToConsume = userId ? 1 : 30
|
||||||
decoded.resource = resource
|
decoded.resource = resource
|
||||||
|
|||||||
Reference in New Issue
Block a user