diff options
| author | Pitu <[email protected]> | 2017-02-01 19:51:51 -0300 |
|---|---|---|
| committer | Pitu <[email protected]> | 2017-02-01 19:51:51 -0300 |
| commit | e59529899413188c9134a06ece082973b52da991 (patch) | |
| tree | 257949fc0eb39a6b4d5085e76a4be2a85f1595a4 | |
| parent | Added rate limiting (diff) | |
| download | host.fuwn.me-e59529899413188c9134a06ece082973b52da991.tar.xz host.fuwn.me-e59529899413188c9134a06ece082973b52da991.zip | |
Making the window 5 seconds instead of milliseconds sounds about right
| -rw-r--r-- | lolisafe.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lolisafe.js b/lolisafe.js index 3bd6616..778a705 100644 --- a/lolisafe.js +++ b/lolisafe.js @@ -22,7 +22,7 @@ safe.use('/', express.static('./uploads')) safe.use('/', express.static('./public')) safe.use('/api', api) -let limiter = new rateLimit({ windowMs: 5, max: 2 }) +let limiter = new rateLimit({ windowMs: 5000, max: 2 }) safe.use('/api/login', limiter) safe.use('/api/register', limiter) |