浏览代码

fix http code and remediation

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

+ 2 - 0
pkg/acquisition/modules/waap/waap_runner.go

@@ -184,6 +184,8 @@ func (r *WaapRunner) handleInBandInterrupt(request *waf.ParsedRequest) {
 	if in := request.Tx.Interruption(); in != nil {
 		r.logger.Debugf("inband rules matched : %d", in.RuleID)
 		r.WaapRuntime.Response.InBandInterrupt = true
+		r.WaapRuntime.Response.HTTPResponseCode = r.WaapRuntime.Config.BlockedHTTPCode
+		r.WaapRuntime.Response.Action = r.WaapRuntime.DefaultRemediation
 
 		err = r.WaapRuntime.ProcessOnMatchRules(request)
 		if err != nil {