mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	增加默认的SYN Flood配置
This commit is contained in:
		@@ -10,6 +10,15 @@ type SYNFloodConfig struct {
 | 
				
			|||||||
	IgnoreLocal    bool  `yaml:"ignoreLocal" json:"ignoreLocal"`       // 忽略本地IP
 | 
						IgnoreLocal    bool  `yaml:"ignoreLocal" json:"ignoreLocal"`       // 忽略本地IP
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					func DefaultSYNFloodConfig() *SYNFloodConfig {
 | 
				
			||||||
 | 
						return &SYNFloodConfig{
 | 
				
			||||||
 | 
							IsOn:           true,
 | 
				
			||||||
 | 
							MinAttempts:    10,
 | 
				
			||||||
 | 
							TimeoutSeconds: 600,
 | 
				
			||||||
 | 
							IgnoreLocal:    true,
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func (this *SYNFloodConfig) Init() error {
 | 
					func (this *SYNFloodConfig) Init() error {
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user