|
|
|
|
@ -127,7 +127,7 @@ RocketChat.Livechat = { |
|
|
|
|
|
|
|
|
|
if (this.connection) { |
|
|
|
|
userData.userAgent = this.connection.httpHeaders['user-agent']; |
|
|
|
|
userData.ip = this.connection.httpHeaders['x-real-ip'] || this.connection.clientAddress; |
|
|
|
|
userData.ip = this.connection.httpHeaders['x-real-ip'] || this.connection.httpHeaders['x-forwarded-for'] || this.connection.clientAddress; |
|
|
|
|
userData.host = this.connection.httpHeaders.host; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|