Skip to content

Commit

Permalink
🐛fix delay parameter for throttle
Browse files Browse the repository at this point in the history
  • Loading branch information
TarradeMarc committed Jul 4, 2024
1 parent 3a873c1 commit 9fcbace
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions proxy/wasm/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func IsThrottled(throttleList []config_parser.BlocklistType, headers, cookies ma
}

th := findSourcePriority(throttleList, session, headers["user-agent"], strings.Split(string(sourceIP), ":")[0])
if !isTimeout(th){
return "continue"
}
if th != config_parser.EmptyBlocklist() {
if th.Property == "" {
return "30-120"
Expand Down
Binary file modified proxy/wasm/cloud-active-defense.wasm
Binary file not shown.

0 comments on commit 9fcbace

Please sign in to comment.