增加默认的SYN Flood配置

This commit is contained in:
刘祥超
2022-01-10 20:07:43 +08:00
parent b2d477345f
commit 7aff314e72

View File

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