mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 06:26:34 +08:00
强制记录攻击日志
This commit is contained in:
@@ -213,6 +213,9 @@ func (this *HTTPRequest) checkWAFRequest(firewallPolicy *firewallconfigs.HTTPFir
|
||||
|
||||
if ruleSet.HasAttackActions() {
|
||||
this.isAttack = true
|
||||
if firewallPolicy.Log != nil && firewallPolicy.Log.IsOn {
|
||||
this.forceLog = true
|
||||
}
|
||||
}
|
||||
|
||||
// 添加统计
|
||||
@@ -275,6 +278,9 @@ func (this *HTTPRequest) checkWAFResponse(firewallPolicy *firewallconfigs.HTTPFi
|
||||
|
||||
if ruleSet.HasAttackActions() {
|
||||
this.isAttack = true
|
||||
if firewallPolicy.Log != nil && firewallPolicy.Log.IsOn {
|
||||
this.forceLog = true
|
||||
}
|
||||
}
|
||||
|
||||
// 添加统计
|
||||
|
||||
Reference in New Issue
Block a user