Use X-Client header for IP for load-balancers

This commit is contained in:
Evan Prodromou 2012-01-10 10:51:36 -05:00
parent 71fa1d2462
commit e3f06ee220

View File

@ -223,6 +223,7 @@ class RegisterThrottlePlugin extends Plugin
private function _getIpAddress()
{
$keys = array('HTTP_X_FORWARDED_FOR',
'HTTP_X_CLIENT',
'CLIENT-IP',
'REMOTE_ADDR');