商业版增加UAM功能

This commit is contained in:
GoEdgeLab
2022-03-29 21:24:57 +08:00
parent 02c06adf65
commit 03a7697bdc
3 changed files with 22 additions and 2 deletions

View File

@@ -241,9 +241,18 @@ func (this *HTTPRequest) doBegin() {
}
// 处理健康检查
var isHealthCheck = false
var healthCheckKey = this.RawReq.Header.Get(serverconfigs.HealthCheckHeaderName)
if len(healthCheckKey) > 0 {
if this.doHealthCheck(healthCheckKey) {
if this.doHealthCheck(healthCheckKey, &isHealthCheck) {
return
}
}
// UAM
if !isHealthCheck && this.ReqServer.UAM != nil && this.ReqServer.UAM.IsOn {
if this.doUAM() {
this.doEnd()
return
}
}