1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-09-20 01:31:34 +02:00

Update ipAddress.ts

This commit is contained in:
Zert3x 2023-05-28 21:39:50 -04:00 committed by GitHub
parent 6f7ce2bc77
commit 6306c5e725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
);
}