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:
parent
6f7ce2bc77
commit
6306c5e725
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user