Commit Graph

58 Commits

Author SHA1 Message Date
James Collins b5cc22e8f5 Geolocation: strip whitespace when obtaining external IP
The "ip.appspot" service returns an IP address plus a  new line character in its response.

An example response from "ip.appspot" is:

```123.123.123.123\n```

This fix strip whitespace from the response before proceeding.
2015-02-09 14:00:05 +08:00
Mike Jolley 2809986fcf Dead var 2015-02-03 14:56:01 +00:00
Mike Jolley 9299f3e0b2 Check remote_addr is set 2015-01-05 10:57:21 +00:00
Mike Jolley 5ee068071f Support HTTP_CF_IPCOUNTRY 2015-01-01 12:43:49 +00:00
Mike Jolley 932263cf0a Check for geoiprecord class 2015-01-01 12:41:04 +00:00
Mike Jolley caac9768a7 Added more fallbacks for API geoIP 2014-12-30 11:11:17 +00:00
Mike Jolley 4e8e90a8de Support dev environment 2014-12-23 22:03:10 +00:00
Mike Jolley f561aa4224 Geolocation class 2014-12-23 18:49:37 +00:00