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/sub
diff options
context:
space:
mode:
Diffstat (limited to 'sub')
-rw-r--r--sub/subClashService.go2
-rw-r--r--sub/subJsonService.go2
-rw-r--r--sub/subService.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/sub/subClashService.go b/sub/subClashService.go
index 7b6b8214..e2f61bec 100644
--- a/sub/subClashService.go
+++ b/sub/subClashService.go
@@ -55,7 +55,7 @@ func (s *SubClashService) GetClash(subId string, host string) (string, string, e
}
}
for _, client := range clients {
- if client.Enable && client.SubID == subId {
+ if client.SubID == subId {
clientTraffics = append(clientTraffics, s.SubService.getClientTraffics(inbound.ClientStats, client.Email))
proxies = append(proxies, s.getProxies(inbound, client, host)...)
}
diff --git a/sub/subJsonService.go b/sub/subJsonService.go
index a51f10bb..38f1ddc8 100644
--- a/sub/subJsonService.go
+++ b/sub/subJsonService.go
@@ -116,7 +116,7 @@ func (s *SubJsonService) GetJson(subId string, host string) (string, string, err
}
for _, client := range clients {
- if client.Enable && client.SubID == subId {
+ if client.SubID == subId {
clientTraffics = append(clientTraffics, s.SubService.getClientTraffics(inbound.ClientStats, client.Email))
newConfigs := s.getConfig(inbound, client, host)
configArray = append(configArray, newConfigs...)
diff --git a/sub/subService.go b/sub/subService.go
index 19ca21d9..d9fe0a6b 100644
--- a/sub/subService.go
+++ b/sub/subService.go
@@ -77,7 +77,7 @@ func (s *SubService) GetSubs(subId string, host string) ([]string, int64, xray.C
}
}
for _, client := range clients {
- if client.Enable && client.SubID == subId {
+ if client.SubID == subId {
link := s.getLink(inbound, client.Email)
result = append(result, link)
ct := s.getClientTraffics(inbound.ClientStats, client.Email)