2011-02-04, 05:38 PM
I've been having a problem, since I switched to a cloud hosting package, because the system is behind a Load Balancer. Therefore, whenever a user tries to register, it looks like they're coming from the same IP and the limit of multiple registrations from the same IP kicks in pretty quickly.
MyBB seems to think HTTPS_X_CLUSTER_CLIENT_IP is the client's IP, but in this case it's the load balancer. Instead, it should record HTTP_X_FORWARDED_FOR
Where in the code do I need to change this?
Update: I know I have to edit get_ip(), but I can't find it. Anyone know where it is?
Update: I finally found it in functions.php line 2798.
MyBB seems to think HTTPS_X_CLUSTER_CLIENT_IP is the client's IP, but in this case it's the load balancer. Instead, it should record HTTP_X_FORWARDED_FOR
Where in the code do I need to change this?
Update: I know I have to edit get_ip(), but I can't find it. Anyone know where it is?
Update: I finally found it in functions.php line 2798.