1
0
espelhamento de https://github.com/therootcompany/golib.git sincronizado 2026-11-04 06:55:00 +00:00

2 Commits

Autor SHA1 Mensagem Data
b67ea17776 chore(net/ipcohort): whitespace 2026-09-09 03:20:28 -06:00
bea4c3de0a
feat(net/ipcohort): IP block/allow cohort filter
IPv4 host + CIDR membership testing backed by sorted /32 binary search
and a linear scan of CIDR ranges. CSV/text loader with bounded reads
(maxBytes is required so callers pick a limit appropriate to their
input source — 1 KB allowlists through 100+ MB threat feeds). Returns
errors for unparseable IPs so callers can decide fail-open vs
fail-closed; partial cohorts are returned alongside parse errors.
2026-05-02 15:41:38 -06:00