mirror of
https://github.com/therootcompany/golib.git
synced 2026-04-24 12:48:00 +00:00
Swap github.com/phuslu/iploc for the shared net/geoip package, matching the pattern established by check-ip. AllowedCountries now reads CountryISO off fm.Geo.Value().Lookup(ipStr) instead of iploc.IPCountry, so the same GeoLite2 databases serve both callers and refresh on the same cadence. New field: Geo *dataset.View[geoip.Databases]. Required when AllowedCountries is set; if Value() is nil (pre-load), the check is skipped (unknown = allow), matching the prior iploc behavior on unknown IPs.