mirror of
https://github.com/Cameri/nostream.git
synced 2025-07-16 16:52:21 +02:00
fix: rate limiter err
Signed-off-by: Ricardo Arturo Cabral Mejía <me@ricardocabral.io>
This commit is contained in:
@ -17,7 +17,7 @@ export const rateLimiterMiddleware = async (request: Request, response: Response
|
|||||||
if (await isRateLimited(clientAddress, currentSettings)) {
|
if (await isRateLimited(clientAddress, currentSettings)) {
|
||||||
response.destroy()
|
response.destroy()
|
||||||
|
|
||||||
return next(new Error('Rate-limited'))
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
next()
|
next()
|
||||||
|
Reference in New Issue
Block a user