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:
@ -7,7 +7,7 @@ import (
|
||||
"server_torii/internal/dataType"
|
||||
)
|
||||
|
||||
func IPBlockList(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision) {
|
||||
func IPBlockList(reqData dataType.UserRequest, ruleSet *config.RuleSet, decision *action.Decision, sharedMem *dataType.SharedMemory) {
|
||||
remoteIP := reqData.RemoteIP
|
||||
trie := ruleSet.IPBlockTrie
|
||||
ip := net.ParseIP(remoteIP)
|
||||
|
Reference in New Issue
Block a user