alexreisner/geocoder — pull request #341 by konsti (2012-11-29 17:51:00+00:00)
Title: Support for X_REAL_IP and X_FORWARDED_FOR

I'm using your gem behind a load balancer and forward the real client ip in the X-Real-Ip header.

To support this setup I extended the Geocoder::Request to use an ip address from the HTTP X headers instead of the Rack `ip` method, which is the ip of my load balancer.

http://en.wikipedia.org/wiki/X-Forwarded-For