Drupal.org runs squid as a remote proxy and thus $_SERVER['REMOTE_ADDR'] is 127.0.0.1. the module needs to look at $_SERVER['HTTP_X_FORWARDED_FOR'].
e.g.:

list($ip, ) = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);

Comments

gerhard killesreiter’s picture

http://drupal.org/node/142773

This is the patch that went into D6. I am usign it backported on d.o.

gerhard killesreiter’s picture

that patch was buggy, see here:

http://drupal.org/node/169263

praseodym’s picture

Assigned: Unassigned » praseodym
Category: feature » bug
Status: Active » Fixed

Fixed this in HEAD and 1.x-dev with a backport of Drupal 6's ipaddress() function combined with the patch on http://drupal.org/node/169263.

Anonymous’s picture

Status: Fixed » Closed (fixed)