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