diff options
| author | Ali Rahimi <alirahimi818@gmail.com> | 2025-01-21 05:01:54 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-21 05:01:54 +0300 |
| commit | 6e9180a6659479ea0b872d3c1bc4727fdd8571bd (patch) | |
| tree | a69ae46d922ae6982e3067debcd23d899e7fa09c /web/web.go | |
| parent | 66fe84181b9c4e2f6c6be943a7f486b4308c32ff (diff) | |
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
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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()) |
