From dfb5ad6f78048dfa36aa7e2a311de2c3564e66cc Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Tue, 26 Jan 2021 10:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BF=E9=97=AE=E6=97=A5=E5=BF=97=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=8F=AA=E8=AE=B0=E5=BD=95WAF=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request_log.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/nodes/http_request_log.go b/internal/nodes/http_request_log.go index 50fd3a0..93ac503 100644 --- a/internal/nodes/http_request_log.go +++ b/internal/nodes/http_request_log.go @@ -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 {