poc of an ratelimit implementation

This commit is contained in:
kirari04
2024-06-10 17:52:16 +02:00
parent fc88dfe72e
commit e3f8c99ed3
4 changed files with 151 additions and 0 deletions

View File

@@ -129,6 +129,13 @@ func (router *Router) StartProxyService() error {
}
}
// Rate Limit Check
// if sep.RequireBasicAuth {
if err := handleRateLimit(w, r, sep); err != nil {
return
}
// }
//Validate basic auth
if sep.RequireBasicAuth {
err := handleBasicAuth(w, r, sep)