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/web
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2024-10-15 21:54:23 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2024-10-15 21:54:23 +0300
commit1c2b6095c94ddcf1ba0c9a7aadd9f70804660b90 (patch)
treed26518de78e81f74cfba78aa920e75f96dc3884d /web
parent5f8c8f4525652ca053a8d0f655de32a597f26d62 (diff)
fix core restart on traffic reset of disabled client
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web')
-rw-r--r--web/service/inbound.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/service/inbound.go b/web/service/inbound.go
index 60530143..7afcb140 100644
--- a/web/service/inbound.go
+++ b/web/service/inbound.go
@@ -1574,7 +1574,7 @@ func (s *InboundService) ResetClientTraffic(id int, clientEmail string) (bool, e
return false, err
}
for _, client := range clients {
- if client.Email == clientEmail {
+ if client.Email == clientEmail && client.Enable {
s.xrayApi.Init(p.GetAPIPort())
cipher := ""
if string(inbound.Protocol) == "shadowsocks" {