mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 21:24:10 +00:00
The middleware was changed to trust CF-Connecting-IP instead of X-Real-IP/X-Forwarded-For, but the tests still used the old headers. TestRateLimitMiddleware_DifferentIPsIndependent was failing because all requests fell back to the same httptest RemoteAddr. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| domainValidator.go | ||
| middleware_test.go | ||
| ratelimit.go | ||
| redirect.go | ||