Browse Source

better reg

activeAddress
Matias Alejo Garcia 8 years ago
parent
commit
d8c786df79
No known key found for this signature in database GPG Key ID: 2470DB551277AB3
  1. 3
      lib/expressapp.js

3
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

Loading…
Cancel
Save