mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
23 lines
696 B
Go
23 lines
696 B
Go
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
|
|
|
package ddosconfigs
|
|
|
|
type TCPConfig struct {
|
|
IsPrior bool `json:"isPrior"`
|
|
IsOn bool `json:"isOn"`
|
|
MaxConnections int32 `json:"maxConnections"`
|
|
MaxConnectionsPerIP int32 `json:"maxConnectionsPerIP"`
|
|
NewConnectionsRate int32 `json:"newConnectionsRate"`
|
|
|
|
// 自动加入黑名单连接速率
|
|
DenyNewConnectionsRate int32 `json:"denyNewConnectionsRate"`
|
|
DenyNewConnectionsRateTimeout int32 `json:"denyNewConnectionsRateTimeout"`
|
|
|
|
AllowIPList []*IPConfig `json:"allowIPList"`
|
|
Ports []*PortConfig `json:"ports"`
|
|
}
|
|
|
|
func (this *TCPConfig) Init() error {
|
|
return nil
|
|
}
|