packages/bak/lib/utils.js
function realIP (request) {
  return request.ip || request.headers['x-real-ip'] || request.headers['x-forwarded-for'] || request.info['remoteAddress']
}
function realIP (request) {
  return request.ip || request.headers['x-real-ip'] || request.headers['x-forwarded-for'] || request.info['remoteAddress']
}
function realIP ( request ) { return request . ip || request . headers [ 'x-real-ip' ] || request . headers [ 'x-forwarded-for' ] || request . info [ 'remoteAddress' ] }
Try to detect request real ip
@param request
@returns string
Try to detect request real ip