mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-09-10 12:16:18 +00:00
disable traffic counting
This commit is contained in:
parent
77f3a25bfe
commit
a7747f7622
1 changed files with 5 additions and 5 deletions
10
web/web.go
10
web/web.go
|
@ -254,11 +254,11 @@ func (s *Server) startTask() {
|
|||
}
|
||||
})
|
||||
|
||||
go func() {
|
||||
time.Sleep(time.Second * 5)
|
||||
// Statistics every 10 seconds, start the delay for 5 seconds for the first time, and staggered with the time to restart xray
|
||||
s.cron.AddJob("@every 10s", job.NewXrayTrafficJob())
|
||||
}()
|
||||
// go func() {
|
||||
// time.Sleep(time.Second * 5)
|
||||
// // Statistics every 10 seconds, start the delay for 5 seconds for the first time, and staggered with the time to restart xray
|
||||
// s.cron.AddJob("@every 10s", job.NewXrayTrafficJob())
|
||||
// }()
|
||||
|
||||
// check client ips from log file every 10 sec
|
||||
s.cron.AddJob("@every 10s", job.NewCheckClientIpJob())
|
||||
|
|
Loading…
Reference in a new issue