套餐可以设置带宽限制

This commit is contained in:
刘祥超
2024-01-11 15:25:47 +08:00
parent 1e1cd5a643
commit a7dd101dbf
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