From b322f74a726b13fff52b9b2f99040011549ee3e0 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sun, 1 Oct 2023 15:16:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4WAF=E5=92=8C=E5=85=B6?= =?UTF-8?q?=E4=BB=96=E9=85=8D=E7=BD=AE=E7=9A=84=E4=BC=98=E5=85=88=E7=BA=A7?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/http_request.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 519e29b..4e9825f 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -204,6 +204,14 @@ func (this *HTTPRequest) Do() { return } + // WAF + if this.web.FirewallRef != nil && this.web.FirewallRef.IsOn { + if this.doWAFRequest() { + this.doEnd() + return + } + } + // UAM if !this.isHealthCheck { if this.web.UAM != nil { @@ -234,14 +242,6 @@ func (this *HTTPRequest) Do() { } } - // WAF - if this.web.FirewallRef != nil && this.web.FirewallRef.IsOn { - if this.doWAFRequest() { - this.doEnd() - return - } - } - // 防盗链 if !this.isSubRequest && this.web.Referers != nil && this.web.Referers.IsOn { if this.doCheckReferers() {