mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-07 13:44:24 +00:00
When behind Cloudflare CDN, RemoteAddr shows CF's IP, breaking rate limiting and logging. Trust CF-Connecting-IP (set by CF, cannot be spoofed by clients) and fall back to RemoteAddr for direct connections. |
||
|---|---|---|
| .. | ||
| domainValidator.go | ||
| middleware_test.go | ||
| ratelimit.go | ||
| redirect.go | ||