Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

IP addresses all the same on cluster

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

Shaun Inman
Mint/Pepper Developer
Posted on Feb 02, '07 at 10:54 am

It could, let me look into it.

Thanks Shaun.

I really love the AJAX in v2.0, by the way, and the new look.

The chocolate theme is niiiice :)

alicam
Minted
Posted on Feb 20, '07 at 01:54 am

Any progress on this?

Shaun Inman
Mint/Pepper Developer
Posted on Feb 20, '07 at 08:45 am

Yes. Try Mint 2.03.

You must be logged in to reply. Login above or create an account