From f734c821d6e62eca5a206b6048f3cd7d65f3e665 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Mon, 4 Dec 2023 19:13:21 +0100 Subject: online users backend #1286 --- xray/process.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'xray/process.go') 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()) } -- cgit v1.2.3