mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 03:00:27 +08:00
记录WAF日志
This commit is contained in:
@@ -64,6 +64,8 @@ type HTTPRequest struct {
|
||||
firewallRuleGroupId int64
|
||||
firewallRuleSetId int64
|
||||
firewallRuleId int64
|
||||
|
||||
logAttrs map[string]string
|
||||
}
|
||||
|
||||
// 初始化
|
||||
@@ -79,6 +81,7 @@ func (this *HTTPRequest) init() {
|
||||
"cache.policy.id": "0",
|
||||
"cache.policy.type": "",
|
||||
}
|
||||
this.logAttrs = map[string]string{}
|
||||
this.requestFromTime = time.Now()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user