Expand description
Cloudflare edge IP range cache.
The proxy needs to know which inbound TCP peer IPs are Cloudflare edge
nodes so it can honor CF-Connecting-IP headers as the real client IP.
Cloudflare publishes its edge ranges at:
(newline-delimited CIDRs). This module caches those ranges and exposes a
fast contains(ip) check. It includes a baked-in fallback list for
boot-time fetch failures and an auto-refresh background task.
Structsยง
- Cloudflare
IpCache - In-memory cache of Cloudflare edge CIDR ranges with a fast
containscheck.