pow/pow_service.js
function _getRemoteAddress( oSocket )
{
	let sRet;

	if ( 'object' !== typeof oSocket )
	{
		return null;
	}

	//	...
	sRet = oSocket.upgradeReq.connection.remoteAddress;
	if ( sRet )
	{
		//
		//	check for proxy
		//	ONLY VALID FOR 127.0.0.1 and resources addresses
		//
		if ( oSocket.upgradeReq.headers[ 'x-real-ip' ] && _isValidResourceAddress( sRet ) )
		{
			//	we are behind a proxy
			sRet = oSocket.upgradeReq.headers[ 'x-real-ip' ];
		}
	}

	return sRet;
}
function _getRemoteAddress( oSocket )
{
	let sRet;

	if ( 'object' !== typeof oSocket )
	{
		return null;
	}

	//	...
	sRet = oSocket.upgradeReq.connection.remoteAddress;
	if ( sRet )
	{
		//
		//	check for proxy
		//	ONLY VALID FOR 127.0.0.1 and resources addresses
		//
		if ( oSocket.upgradeReq.headers[ 'x-real-ip' ] && _isValidResourceAddress( sRet ) )
		{
			//	we are behind a proxy
			sRet = oSocket.upgradeReq.headers[ 'x-real-ip' ];
		}
	}

	return sRet;
}
function _getRemoteAddress ( oSocket ) { let sRet ; if ( 'object' !== typeof oSocket ) { return null ; } //	... sRet = oSocket . upgradeReq . connection . remoteAddress ; if ( sRet ) { // //	check for proxy //	ONLY VALID FOR 127.0.0.1 and resources addresses // if ( oSocket . upgradeReq . headers [ 'x-real-ip' ] && _isValidResourceAddress ( sRet ) ) { //	we are behind a proxy sRet = oSocket . upgradeReq . headers [ 'x-real-ip' ] ; } } return sRet ; }
get remote address

@private
@param	{object}	oSocket
get remote address