mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	5秒盾增加QPS限制选项
This commit is contained in:
		@@ -12,6 +12,7 @@ type UAMConfig struct {
 | 
			
		||||
	AddToWhiteList    bool                 `yaml:"addToWhiteList" json:"addToWhiteList"`       // 是否将IP加入到白名单
 | 
			
		||||
	OnlyURLPatterns   []*shared.URLPattern `yaml:"onlyURLPatterns" json:"onlyURLPatterns"`     // 仅限的URL
 | 
			
		||||
	ExceptURLPatterns []*shared.URLPattern `yaml:"exceptURLPatterns" json:"exceptURLPatterns"` // 排除的URL
 | 
			
		||||
	MinQPSPerIP       int                  `yaml:"minQPSPerIP" json:"minQPSPerIP"`             // 启用要求的单IP最低平均QPS
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewUAMConfig() *UAMConfig {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user