Quote:
Originally Posted by del Drago
Thanks for clarifying the situation, Paul. Cloudflare needs to stop directing people to this mod, because they are causing a lot of unnecessary confusion.
|
I wasnt aware they were, but its easy enough to modify it to work with them.
In addition to the install instructions provided, just do this ;
Code:
In class_core.php ;
Find ;
if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$altip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
Replace with ;
if (isset($_SERVER['HTTP_CF_CONNECTING_IP']))
{
$altip = $_SERVER['HTTP_CF_CONNECTING_IP'];
}
else if (isset($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$altip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}
No need to perform their option 2 then.
I've included this in the instructions for v4.2.0.1