The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/server/lib/getClientAddress.ts

8 lines
256 B

import { IMethodConnection } from '../../definition/IMethodThisType';
export function getClientAddress(connection: IMethodConnection): string {
if (!connection) {
return '';
}
return connection.clientAddress || connection.httpHeaders['x-real-ip'];
}