summaryrefslogtreecommitdiffstats
path: root/cmd/relay/main.go
diff options
context:
space:
mode:
authorbndw <ben@bdw.to>2026-02-14 21:50:10 -0800
committerbndw <ben@bdw.to>2026-02-14 21:50:10 -0800
commite647880669b79cd968231cf85dc037a18e8bfd9c (patch)
tree4275603466ff264b680af75dc4386bf130d75997 /cmd/relay/main.go
parent4dbd96ec697196d43ad41eca4fd43d53da46a081 (diff)
fix: prioritize proxy headers for rate limiting
Check X-Forwarded-For and X-Real-IP headers before peer info to correctly identify clients behind reverse proxies. Previously, rate limiting would apply globally when behind Caddy/nginx because all requests appeared to come from the proxy's IP address. This fix is critical for production deployments behind reverse proxies.
Diffstat (limited to 'cmd/relay/main.go')
0 files changed, 0 insertions, 0 deletions