mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-04 05:00:24 +08:00
增加默认的SYN Flood配置
This commit is contained in:
@@ -10,6 +10,15 @@ type SYNFloodConfig struct {
|
||||
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 {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user