Sebastien Blot 1 年之前
父节点
当前提交
fe005f87e5
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      pkg/waf/waap.go

+ 0 - 2
pkg/waf/waap.go

@@ -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 ?
 		//@tko how should we handle this ? it seems bouncer only understand bans, but it might be misleading ?
 	case "deny", "ban", "block":
 	case "deny", "ban", "block":
 		w.Response.Action = "ban"
 		w.Response.Action = "ban"
-		w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
 	case "log":
 	case "log":
 		w.Response.Action = action
 		w.Response.Action = action
 		w.Response.HTTPResponseCode = w.Config.PassedHTTPCode
 		w.Response.HTTPResponseCode = w.Config.PassedHTTPCode
 	case "captcha":
 	case "captcha":
 		w.Response.Action = action
 		w.Response.Action = action
-		w.Response.HTTPResponseCode = w.Config.BlockedHTTPCode
 	default:
 	default:
 		return nil, fmt.Errorf("unknown action %s", action)
 		return nil, fmt.Errorf("unknown action %s", action)
 	}
 	}