clientIP keys the per-IP limiters on the same trusted source as the DCR limiter: CF-Connecting-IP only, never the client-controlled X-Forwarded-For (see dcrSourceIP for the full rationale and the origin-firewall caveat). Delegating keeps every per-IP surface identical and impossible to drift apart.
(r *http.Request)
| 1586 | // origin-firewall caveat). Delegating keeps every per-IP surface |
| 1587 | // identical and impossible to drift apart. |
| 1588 | func clientIP(r *http.Request) string { |
| 1589 | return dcrSourceIP(r) |
| 1590 | } |
no test coverage detected