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
This commit is contained in:
Ali Rahimi
2025-01-21 03:01:54 +01:00
committed by GitHub
parent 66fe84181b
commit 6e9180a665
26 changed files with 818 additions and 71 deletions

View File

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