mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-14 07:30:25 +08:00
访问日志可以只记录WAF相关日志
This commit is contained in:
@@ -32,6 +32,10 @@ func (this *HTTPRequest) log() {
|
||||
return
|
||||
}
|
||||
|
||||
if ref.FirewallOnly && this.firewallPolicyId == 0 {
|
||||
return
|
||||
}
|
||||
|
||||
addr := this.RawReq.RemoteAddr
|
||||
index := strings.LastIndex(addr, ":")
|
||||
if index > 0 {
|
||||
|
||||
Reference in New Issue
Block a user