I have my wordpress site behind a reverse proxy, this sets REMOTE_ADDR to 127.0.0.1. To get the client IP the plugin needs to get the address from HTTP_X_FORWARDED_FOR.
I changed line 958 in statcomm.php to:
$ipAddress = isset($_SERVER[‘HTTP_X_FORWARDED_FOR’]) ? $_SERVER[‘HTTP_X_FORWARDED_FOR’] : $_SERVER[‘REMOTE_ADDR’];
Thanks to an awesome plugin
- The topic ‘[Plugin: StatComm (StatPress Community) Multisite Edition] Correct IP address behind reverse proxy’ is closed to new replies.