[chore] add IPPrefixes type so we don't need separate rate limit parsed field (#3982)

* add IPPrefixes type so we don't need separate rate limit parsed field

* sshhhh please linter, mommy's working
This commit is contained in:
kim 2025-04-09 16:32:13 +00:00 committed by GitHub
commit b1a4d54c14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 82 additions and 71 deletions

View file

@ -171,7 +171,7 @@ func injectTrustedProxiesRec(
return
}
except := config.GetAdvancedRateLimitExceptionsParsed()
except := config.GetAdvancedRateLimitExceptions()
for _, prefix := range except {
if prefix.Contains(ip) {
// This ip is exempt from