mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
add rate limiting support
This commit is contained in:
@@ -2809,6 +2809,7 @@ func TestDefenderAPI(t *testing.T) {
|
||||
cfg := config.GetCommonConfig()
|
||||
cfg.DefenderConfig.Enabled = true
|
||||
cfg.DefenderConfig.Threshold = 3
|
||||
cfg.DefenderConfig.ScoreRateExceeded = 2
|
||||
|
||||
err := common.Initialize(cfg)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user