|
@@ -62,7 +62,7 @@ class LogModel extends BaseModel {
|
|
|
//let ip = request.connection.remoteAddress;
|
|
//let ip = request.connection.remoteAddress;
|
|
|
// ip = ip?ip.split(':'):[];
|
|
// ip = ip?ip.split(':'):[];
|
|
|
// ip = ip[3] === undefined ? '' : ip[3];
|
|
// ip = ip[3] === undefined ? '' : ip[3];
|
|
|
- let ip = request.headers.X-Real-IP? request.headers.X-Real-IP:"";
|
|
|
|
|
|
|
+ let ip = request.headers["X-Real-IP"]? request.headers["X-Real-IP"]:"";
|
|
|
// let ipInfo = '127.0.0.1';//await this.getIpInfoFromApi(ip);
|
|
// let ipInfo = '127.0.0.1';//await this.getIpInfoFromApi(ip);
|
|
|
let ipInfo = await this.getIpInfoFromApi(ip);
|
|
let ipInfo = await this.getIpInfoFromApi(ip);
|
|
|
|
|
|