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() {