WAF动作record_ip返回403/优化关闭连接方法

This commit is contained in:
GoEdgeLab
2021-10-12 09:06:28 +08:00
parent bd3c27905a
commit c9bf5b3f06
4 changed files with 5 additions and 18 deletions

View File

@@ -66,7 +66,7 @@ func (this *Get302Action) Perform(waf *WAF, group *RuleGroup, set *RuleSet, requ
// 关闭连接
if request.WAFRaw().ProtoMajor == 1 {
_ = this.CloseConn(writer)
request.WAFClose()
}
return true