mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 04:22:25 -06:00
add IPPrefixes type so we don't need separate rate limit parsed field
This commit is contained in:
parent
19cfa8d126
commit
9d15102f70
10 changed files with 82 additions and 71 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue