diff --git a/internal/nodes/http_request.go b/internal/nodes/http_request.go index 71ea7d4..012e91b 100644 --- a/internal/nodes/http_request.go +++ b/internal/nodes/http_request.go @@ -265,10 +265,19 @@ func (this *HTTPRequest) doBegin() { } // UAM - if !isHealthCheck && this.ReqServer.UAM != nil && this.ReqServer.UAM.IsOn { - if this.doUAM() { - this.doEnd() - return + if !isHealthCheck { + if this.web.UAM != nil { + if this.web.UAM.IsOn { + if this.doUAM() { + this.doEnd() + return + } + } + } else if this.ReqServer.UAM != nil && this.ReqServer.UAM.IsOn { + if this.doUAM() { + this.doEnd() + return + } } } @@ -521,6 +530,11 @@ func (this *HTTPRequest) configureWeb(web *serverconfigs.HTTPWebConfig, isTop bo } } + // UAM + if web.UAM != nil && (web.UAM.IsPrior || isTop) { + this.web.UAM = web.UAM + } + // 重写规则 if len(web.RewriteRefs) > 0 { for index, ref := range web.RewriteRefs {