自动升级SYN Flood配置

This commit is contained in:
刘祥超
2022-01-10 20:07:26 +08:00
parent 564d440cd1
commit cf9b31b8eb
3 changed files with 35 additions and 6 deletions

View File

@@ -133,12 +133,7 @@ func (this *HTTPFirewallPolicyDAO) CreateFirewallPolicy(tx *dbs.Tx, userId int64
op.UseLocalFirewall = true
{
synFloodJSON, err := json.Marshal(&firewallconfigs.SYNFloodConfig{
IsOn: true,
MinAttempts: 10,
TimeoutSeconds: 600,
IgnoreLocal: true,
})
synFloodJSON, err := json.Marshal(firewallconfigs.DefaultSYNFloodConfig())
if err != nil {
return 0, err
}