]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use X-Client header for IP for load-balancers
authorEvan Prodromou <evan@status.net>
Tue, 10 Jan 2012 15:51:36 +0000 (10:51 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 10 Jan 2012 15:51:36 +0000 (10:51 -0500)
plugins/RegisterThrottle/RegisterThrottlePlugin.php

index 7ad7809bac9b908d1a9826ad41e71b8c4238eff0..1e686bd62bc70f077a0892324faed1ffe0b97f7b 100644 (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');