...
|
...
|
@@ -21,7 +21,11 @@ const _getClientIp = req => { |
|
|
remoteIp = _.trim(arr[arr.length - 1]);
|
|
|
}
|
|
|
|
|
|
return remoteIp;
|
|
|
if (_.startsWith(remoteIp, '10.66.')) {
|
|
|
remoteIp = req.get('X-Real-IP');
|
|
|
}
|
|
|
|
|
|
return _.trim(remoteIp);
|
|
|
};
|
|
|
|
|
|
module.exports = () => {
|
...
|
...
|
|