I am hosted at Mosso, which has a cluster setup.
I have corrected WP IP address issues with a tiny plugin that replaces $_SERVER['REMOTE_ADDR'] with $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'].
Can the same be done with Mint to correct the fact that in Secret Crush, for example, 99% of IP addresses are the same?
Would this overwrite of getIP() do it?
function getIP()
{
return (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['HTTP_X_FORWARDED_FOR'])) ? $_SERVER['HTTP_X_FORWARDED_FOR'] :
(isset($_SERVER['HTTP_X_CLUSTER_CLIENT_IP']) && !empty($_SERVER['HTTP_X_CLUSTER_CLIENT_IP'])) ? $_SERVER['HTTP_X_CLUSTER_CLIENT_IP'] :
$_SERVER['REMOTE_ADDR'];
}
I don’t know enough of PHP/server stuff to know whether this will work, and am reluctant to try it.
Thanks
-Alister