Files
gitea/routers
silverwind 96143fa251 fix: replace deprecated chi middleware.RealIP in internal router
chi v5.3.0 deprecates middleware.RealIP (staticcheck SA1019). The internal
API is gated by InternalToken and its client sends a single trusted
X-Real-IP header, so replace it with a small local middleware that reads
X-Real-IP and sets RemoteAddr, preserving the previous behavior.

Assisted-by: claude-code:opus-4.8
2026-06-02 07:18:10 +02:00
..