src/plugins/proxy.js
/**
 * Detect the actual IP address, ignoring the proxies.
 */
Detect the actual IP address, ignoring the proxies.
Detect the actual IP address ignoring the proxies .
function detectAddress(remoteAddress, headers) {
  let address = remoteAddress;
  if (headers.has('x-forwarded-for')) {
    address = proxyaddr(
      {
        headers: headers.toJS(),
        connection: { remoteAddress: remoteAddress },
      },
      trusted
    );
  }
  return Map({ value: address });
}
function detectAddress ( remoteAddress , headers ) { let address = remoteAddress ; if ( headers . has ( 'x-forwarded-for' ) ) { address = proxyaddr ( { headers : headers . toJS ( ) , connection : { remoteAddress : remoteAddress } , } , trusted ) ; } return Map ( { value : address } ) ; }
Detect the actual IP address, ignoring the proxies.
Detect the actual IP address ignoring the proxies .