disable traffic counting

This commit is contained in:
lionarius 2024-10-05 02:44:43 +03:00 committed by lionarius
parent 70a18fcee9
commit f1485704d8
No known key found for this signature in database
GPG key ID: FD8C037D30ACBE86

View file

@ -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())