lib/fluent/plugin/geoip.rb in fluent-plugin-viki-0.1.3 vs lib/fluent/plugin/geoip.rb in fluent-plugin-viki-0.1.4
- old
+ new
@@ -1,4 +1,6 @@
+require 'maxminddb'
+
module Fluent
module Geoip
def country_code_of_ip(ip)
iso_code = global_geoip.lookup(ip).country.iso_code
iso_code && iso_code.downcase
\ No newline at end of file