mirror of
				https://github.com/TeaOSLab/EdgeNode.git
				synced 2025-11-04 07:40:56 +08:00 
			
		
		
		
	调整WAF和其他配置的优先级顺序
This commit is contained in:
		@@ -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() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user