getRemoteIp took a trusted proxy's X-Real-IP first, otherwise the leftmost X-Forwarded-For entry. A proxy that forwards a client-sent X-Real-IP unchanged (Caddy, HAProxy) or appends to X-Forwarded-For leaves both values to the client. X-Forwarded-For is now read from the right, skipping trusted proxies. X-Real-IP is believed only when it agrees with that hop or stands alone, and a disagreement falls back to the proxy's own address. The documented Caddyfile and the docs reverse-proxy generator now overwrite X-Real-IP with the address Caddy saw. |
||
|---|---|---|
| .. | ||
| backup-restore.mdx | ||
| discord-bot.mdx | ||
| meta.json | ||
| multi-node.mdx | ||
| outbounds-routing.mdx | ||
| reverse-proxy.mdx | ||
| security.mdx | ||
| telegram-bot.mdx | ||