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']);
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
Comment #1
gerhard killesreiter commentedhttp://drupal.org/node/142773
This is the patch that went into D6. I am usign it backported on d.o.
Comment #2
gerhard killesreiter commentedthat patch was buggy, see here:
http://drupal.org/node/169263
Comment #3
praseodym commentedFixed 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.
Comment #4
(not verified) commented