Closed liut closed 4 years ago
example scene:
f, err := New(Options{ IPDBPath: "/var/tmp/GeoLite2-Country.mmdb", IPDBNoFetch: true, AllowedIPs: []string{"222.25.118.1"}, BlockByDefault: true, })
Thanks for your work, though I've just pushed a change to remove maxminddb, in favour of iplocation data (see https://github.com/phuslu/geoip)
example scene: