增加默认的SYN Flood配置

This commit is contained in:
GoEdgeLab
2022-01-10 20:07:43 +08:00
parent ee2fe6cce2
commit 4e59c65185

View File

@@ -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
}