Skip to content

Commit

Permalink
read geo data from home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tlossen committed Jan 23, 2010
1 parent 354503b commit d7dd80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def cyan(text)
end

def country(ip)
GeoIP.new('GeoIP.dat').country(ip)[5]
GeoIP.new("#{ENV['HOME']}/GeoIP.dat").country(ip)[5]
end

#line = %q{85.179.21.217 - - [19/Dec/2009:22:37:02 +0100] "GET /charts/eu-west-1.windows.m1.small.html HTTP/1.1" 200 1826 "http://www.cloudexchange.org/charts/us-west-1.windows.m1.small.html" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5"}
Expand Down

0 comments on commit d7dd80a

Please sign in to comment.