Matias Alejo Garcia
8 years ago
No known key found for this signature in database
GPG Key ID: 2470DB551277AB3
1 changed files with
1 additions and
2 deletions
-
lib/expressapp.js
|
|
@ -175,8 +175,7 @@ ExpressApp.prototype.start = function(opts, cb) { |
|
|
|
if (Defaults.RateLimit.createWallet) { |
|
|
|
log.info('', 'Limiting wallet creation per IP: %d req/h', (Defaults.RateLimit.createWallet.max / Defaults.RateLimit.createWallet.windowMs * 60 * 60 * 1000).toFixed(2)) |
|
|
|
var createWalletLimiter = new RateLimit(Defaults.RateLimit.createWallet); |
|
|
|
router.use(/\v1\/wallets\/$/, createWalletLimiter) |
|
|
|
router.use(/\/v2\/wallets\/$/, createWalletLimiter) |
|
|
|
router.use(/\/v\d+\/wallets\/$/, createWalletLimiter) |
|
|
|
} |
|
|
|
|
|
|
|
// DEPRECATED
|
|
|
|