diff options
author | Zert3x <81202811+Zert3x@users.noreply.github.com> | 2023-05-28 21:39:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-28 21:39:50 -0400 |
commit | 6306c5e725b104dca8d0f01f55f88f3e1264e31e (patch) | |
tree | c598bb44deb0ef5c1f1871794071a6d0f368ebfb | |
parent | forwaded -> forwarded (diff) | |
download | server-6306c5e725b104dca8d0f01f55f88f3e1264e31e.tar.xz |
Update ipAddress.ts
-rw-r--r-- | src/api/util/utility/ipAddress.ts | 2 |
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 ); } |