diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-24 03:01:57 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2022-08-24 16:57:10 +0200 |
commit | baeec00f65f74001cae5e6fd4e93767f27e43ceb (patch) | |
tree | 000a3d3734f5ae2940ca829f97be51a042f5c558 /src/util | |
parent | Merge branch 'dev/cherry-plugins-improvements' into staging (diff) | |
download | server-baeec00f65f74001cae5e6fd4e93767f27e43ceb.tar.xz |
case insensitive header for rate limits, fix rate limit default settings
Also disabled rate limit bypass right as it doesn't work...
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/config/types/subconfigurations/limits/RateLimits.ts | 2 | ||||
-rw-r--r-- | src/util/config/types/subconfigurations/limits/ratelimits/Route.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/config/types/subconfigurations/limits/RateLimits.ts b/src/util/config/types/subconfigurations/limits/RateLimits.ts index db3f8a4c..764acdd6 100644 --- a/src/util/config/types/subconfigurations/limits/RateLimits.ts +++ b/src/util/config/types/subconfigurations/limits/RateLimits.ts @@ -14,5 +14,5 @@ export class RateLimits { count: 10, window: 5 }; - routes: RouteRateLimit; + routes: RouteRateLimit = new RouteRateLimit(); } diff --git a/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts b/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts index 464670f2..6890699e 100644 --- a/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts +++ b/src/util/config/types/subconfigurations/limits/ratelimits/Route.ts @@ -14,6 +14,6 @@ export class RouteRateLimit { count: 10, window: 5 }; - auth: AuthRateLimit; + auth: AuthRateLimit = new AuthRateLimit(); // TODO: rate limit configuration for all routes } |