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.
11 lines
261 B
Modula-2
11 lines
261 B
Modula-2
module github.com/therootcompany/golib/net/formmailer
|
|
|
|
go 1.26.0
|
|
|
|
require (
|
|
github.com/therootcompany/golib/net/geoip v0.0.0
|
|
github.com/therootcompany/golib/net/ipcohort v0.0.0
|
|
github.com/therootcompany/golib/sync/dataset v0.0.0
|
|
golang.org/x/time v0.15.0
|
|
)
|