Merge pull request #18 from hossinasaadi/limit-connection

revert schedule time
This commit is contained in:
Hossin Asaadi
2022-11-05 23:44:58 +03:30
committed by GitHub

View File

@@ -105,7 +105,7 @@ func processLogFile() {
// check if inbound connection is more than limited ip and drop connection
LimitDevice := func() { LimitDevice() }
stop := schedule(LimitDevice, 10 *time.Millisecond)
stop := schedule(LimitDevice, 100 *time.Millisecond)
time.Sleep(15 * time.Second)
stop <- true