summary refs log tree commit diff
path: root/src/api
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/api
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/api')
-rw-r--r--src/api/util/utility/ipAddress.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/util/utility/ipAddress.ts b/src/api/util/utility/ipAddress.ts
index 172e9604..c51daf6c 100644
--- a/src/api/util/utility/ipAddress.ts
+++ b/src/api/util/utility/ipAddress.ts
@@ -102,7 +102,7 @@ export function getIpAdress(req: Request): string {
 	return (
 		// eslint-disable-next-line @typescript-eslint/ban-ts-comment
 		// @ts-ignore
-		req.headers[Config.get().security.forwadedFor] ||
+		req.headers[Config.get().security.forwardedFor] ||
 		req.socket.remoteAddress
 	);
 }