summary refs log tree commit diff
path: root/src/gateway/events/Connection.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2023-06-14 18:30:16 +1000
committerGitHub <noreply@github.com>2023-06-14 18:30:16 +1000
commitbf079ffa7a6211ee7387cf2c4f446d769a88fb5c (patch)
tree33b5389bc40e03943e118cbbc959d046a23c212a /src/gateway/events/Connection.ts
parentMerge pull request #1069 from ngn13/pass_length_check (diff)
parentUpdate Connection.ts (diff)
downloadserver-bf079ffa7a6211ee7387cf2c4f446d769a88fb5c.tar.xz
Merge pull request #1066 from Zert3x/master
Fix a typo
Diffstat (limited to 'src/gateway/events/Connection.ts')
-rw-r--r--src/gateway/events/Connection.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gateway/events/Connection.ts b/src/gateway/events/Connection.ts
index 68273ace..1991ebbe 100644
--- a/src/gateway/events/Connection.ts
+++ b/src/gateway/events/Connection.ts
@@ -45,7 +45,7 @@ export async function Connection(
 	socket: WebSocket,
 	request: IncomingMessage,
 ) {
-	const forwardedFor = Config.get().security.forwadedFor;
+	const forwardedFor = Config.get().security.forwardedFor;
 	const ipAddress = forwardedFor
 		? (request.headers[forwardedFor] as string)
 		: request.socket.remoteAddress;