套餐可以设置带宽限制

This commit is contained in:
GoEdgeLab
2024-01-11 15:25:47 +08:00
parent 9c518fbb27
commit 38c52823db
11 changed files with 139 additions and 9 deletions

View File

@@ -201,9 +201,10 @@ func (this *HTTPRequest) Do() {
// 流量限制
if this.ReqServer.TrafficLimitStatus != nil && this.ReqServer.TrafficLimitStatus.IsValid() {
this.doTrafficLimit()
this.doEnd()
return
if this.doTrafficLimit(this.ReqServer.TrafficLimitStatus) {
this.doEnd()
return
}
}
// WAF