function getRemoteAddr
if ( $_SERVER["HTTP_CF_CONNECTING_IP"] ) {
$this->_remoteAddr = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
http://www.tall-paul.co.uk/2012/03/02/magento-show-remote-ip-when-using-cloudflare/
if ( $_SERVER["HTTP_CF_CONNECTING_IP"] ) {
$this->_remoteAddr = $_SERVER["HTTP_CF_CONNECTING_IP"];
}
http://www.tall-paul.co.uk/2012/03/02/magento-show-remote-ip-when-using-cloudflare/
转载于:https://my.oschina.net/liufeng815/blog/473015