mirror of
https://github.com/Rayzggz/server_torii.git
synced 2025-06-19 21:51:20 +08:00
feat: HTTP FLOOD Speed Limit
add shared memory
This commit is contained in:
@ -9,7 +9,7 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
func VerifyBot(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision) {
|
||||
func VerifyBot(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision, sharedMem *dataType.SharedMemory) {
|
||||
ua := strings.ToLower(reqData.UserAgent)
|
||||
|
||||
var exptractRDNS []string
|
||||
|
Reference in New Issue
Block a user