summary refs log tree commit diff
diff options
context:
space:
mode:
authorZert3x <81202811+Zert3x@users.noreply.github.com>2023-05-28 21:39:50 -0400
committerGitHub <noreply@github.com>2023-05-28 21:39:50 -0400
commit6306c5e725b104dca8d0f01f55f88f3e1264e31e (patch)
treec598bb44deb0ef5c1f1871794071a6d0f368ebfb
parentforwaded -> forwarded (diff)
downloadserver-6306c5e725b104dca8d0f01f55f88f3e1264e31e.tar.xz
Update ipAddress.ts
-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
 	);
 }