diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-06-14 18:30:16 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 18:30:16 +1000 |
commit | bf079ffa7a6211ee7387cf2c4f446d769a88fb5c (patch) | |
tree | 33b5389bc40e03943e118cbbc959d046a23c212a /src/api | |
parent | Merge pull request #1069 from ngn13/pass_length_check (diff) | |
parent | Update Connection.ts (diff) | |
download | server-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.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 ); } |