mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-21 16:25:49 +00:00
Merge pull request #16 from hossinasaadi/limit-connection
lower schedule time
This commit is contained in:
@@ -105,8 +105,8 @@ func processLogFile() {
|
|||||||
// check if inbound connection is more than limited ip and drop connection
|
// check if inbound connection is more than limited ip and drop connection
|
||||||
LimitDevice := func() { LimitDevice() }
|
LimitDevice := func() { LimitDevice() }
|
||||||
|
|
||||||
stop := schedule(LimitDevice, 100 *time.Millisecond)
|
stop := schedule(LimitDevice, 10 *time.Millisecond)
|
||||||
time.Sleep(11 * time.Second)
|
time.Sleep(15 * time.Second)
|
||||||
stop <- true
|
stop <- true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user