Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/xray
diff options
context:
space:
mode:
Diffstat (limited to 'xray')
-rw-r--r--xray/process.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/xray/process.go b/xray/process.go
index 2e545fba..a3c37fd5 100644
--- a/xray/process.go
+++ b/xray/process.go
@@ -98,6 +98,8 @@ type process struct {
version string
apiPort int
+ onlineClients []string
+
config *Config
lines *queue.Queue
exitErr error
@@ -153,6 +155,14 @@ func (p *Process) GetConfig() *Config {
return p.config
}
+func (p *Process) GetOnlineClients() []string {
+ return p.onlineClients
+}
+
+func (p *Process) SetOnlineClients(users []string) {
+ p.onlineClients = users
+}
+
func (p *Process) GetUptime() uint64 {
return uint64(time.Since(p.startTime).Seconds())
}