mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-01-03 01:26:34 +08:00
改进流量限制
This commit is contained in:
@@ -363,3 +363,8 @@ func (this *ServerConfig) FindAndCheckReverseProxy(dataType string) (*ReversePro
|
||||
return nil, errors.New("invalid data type:'" + dataType + "'")
|
||||
}
|
||||
}
|
||||
|
||||
// ShouldCheckTrafficLimit 检查是否需要检查流量限制
|
||||
func (this *ServerConfig) ShouldCheckTrafficLimit() bool {
|
||||
return this.TrafficLimit != nil && !this.TrafficLimit.IsEmpty()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user