mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-20 14:07:33 +08:00
feat: HTTP FLOOD Speed Limit
add shared memory
This commit is contained in:
@ -25,7 +25,7 @@ type HCaptchaResponse struct {
|
||||
ErrorCodes []string `json:"error-codes"`
|
||||
}
|
||||
|
||||
func Captcha(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision) {
|
||||
func Captcha(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision, sharedMem *dataType.SharedMemory) {
|
||||
if !reqData.Captcha {
|
||||
decision.Set(action.Continue)
|
||||
return
|
||||
|
Reference in New Issue
Block a user