mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 11:20:27 +08:00
调整WAF和其他配置的优先级顺序
This commit is contained in:
@@ -204,6 +204,14 @@ func (this *HTTPRequest) Do() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// WAF
|
||||||
|
if this.web.FirewallRef != nil && this.web.FirewallRef.IsOn {
|
||||||
|
if this.doWAFRequest() {
|
||||||
|
this.doEnd()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// UAM
|
// UAM
|
||||||
if !this.isHealthCheck {
|
if !this.isHealthCheck {
|
||||||
if this.web.UAM != nil {
|
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.isSubRequest && this.web.Referers != nil && this.web.Referers.IsOn {
|
||||||
if this.doCheckReferers() {
|
if this.doCheckReferers() {
|
||||||
|
|||||||
Reference in New Issue
Block a user