mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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:
@@ -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
|
||||
|
Reference in New Issue
Block a user