From 6e9180a6659479ea0b872d3c1bc4727fdd8571bd Mon Sep 17 00:00:00 2001 From: Ali Rahimi Date: Tue, 21 Jan 2025 03:01:54 +0100 Subject: Group Management of Subscription Clients (#2644) * add group user with the same subscription id to all inbounds * code format compare * add await for reset client traffic * en language changed * added client traffic syncer job * handle exist email duplicate in sub group * multi reset and delete request for clients group * add client traffic syncer setting option * vi translate file updated * auto open qr-modal bug fixed --- web/web.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'web/web.go') diff --git a/web/web.go b/web/web.go index 35ccec70..4bd1e1db 100644 --- a/web/web.go +++ b/web/web.go @@ -260,6 +260,13 @@ func (s *Server) startTask() { s.cron.AddJob("@every 10s", job.NewXrayTrafficJob()) }() + isSubEnable, err1 := s.settingService.GetSubEnable() + isSubSyncEnable, err2 := s.settingService.GetSubSyncEnable() + if err1 == nil && err2 == nil && isSubEnable && isSubSyncEnable { + // Sync the client traffic with the same SubId every 10 seconds + s.cron.AddJob("@every 10s", job.NewClientTrafficSyncJob()) + } + // check client ips from log file every 10 sec s.cron.AddJob("@every 10s", job.NewCheckClientIpJob()) -- cgit v1.2.3