记录WAF日志

This commit is contained in:
刘祥超
2020-11-02 15:49:30 +08:00
parent 0862f6ccce
commit d1dbe44485
5 changed files with 86 additions and 33 deletions

View File

@@ -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()
}