1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00

case insensitive header for rate limits, fix rate limit default settings

Also disabled rate limit bypass right as it doesn't work...
This commit is contained in:
TheArcaneBrony 2022-08-24 03:01:57 +02:00 committed by Madeline
parent f659be2cd0
commit 9fc4d4bd5e
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
2 changed files with 30 additions and 30 deletions

View File

@ -14,5 +14,5 @@ export class RateLimits {
count: 10,
window: 5
};
routes: RouteRateLimit;
routes: RouteRateLimit = new RouteRateLimit();
}

View File

@ -14,6 +14,6 @@ export class RouteRateLimit {
count: 10,
window: 5
};
auth: AuthRateLimit;
auth: AuthRateLimit = new AuthRateLimit();
// TODO: rate limit configuration for all routes
}