diff options
| author | 2025-10-13 18:20:53 +0200 | |
|---|---|---|
| committer | 2025-10-17 15:33:01 +0200 | |
| commit | eaaf2d75bdde5f522ed9479cc1c2f99e92fdfe9c (patch) | |
| tree | 703e7bc12f29ac2181afd197645658861f56b88b /internal | |
| parent | [chore] update dependencies (#4495) (diff) | |
| download | gotosocial-eaaf2d75bdde5f522ed9479cc1c2f99e92fdfe9c.tar.xz | |
[bugfix] Fix "client IP could not be parsed" error msg (#4497)
Fix missing warn log param.
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4497
Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Co-committed-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/middleware/ratelimit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/middleware/ratelimit.go b/internal/middleware/ratelimit.go index 48c54636b..72659c5c1 100644 --- a/internal/middleware/ratelimit.go +++ b/internal/middleware/ratelimit.go @@ -88,7 +88,7 @@ func RateLimit(limit int, except []netip.Prefix) gin.HandlerFunc { c.Request.Context(), "cannot do rate limiting for this request as client IP %s could not be parsed;"+ " your upstream reverse proxy may be misconfigured: %v", - err, + clientIP, err, ) c.Next() return |
