summary refs log tree commit diff
path: root/src/util
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-24 03:01:57 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-24 16:57:10 +0200
commitbaeec00f65f74001cae5e6fd4e93767f27e43ceb (patch)
tree000a3d3734f5ae2940ca829f97be51a042f5c558 /src/util
parentMerge branch 'dev/cherry-plugins-improvements' into staging (diff)
downloadserver-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.ts2
-rw-r--r--src/util/config/types/subconfigurations/limits/ratelimits/Route.ts2
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
 }