up
This commit is contained in:
parent
b31d48a797
commit
fe005f87e5
1 changed files with 0 additions and 2 deletions
|
@ -441,13 +441,11 @@ func (w *WaapRuntimeConfig) SetAction(params ...any) (any, error) {
|
|||
//@tko how should we handle this ? it seems bouncer only understand bans, but it might be misleading ?
|
||||
case "deny", "ban", "block":
|
||||
w.Response.Action = "ban"
|
||||
w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
|
||||
case "log":
|
||||
w.Response.Action = action
|
||||
w.Response.HTTPResponseCode = w.Config.PassedHTTPCode
|
||||
case "captcha":
|
||||
w.Response.Action = action
|
||||
w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown action %s", action)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue