diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-10-15 21:54:23 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-10-15 21:54:23 +0300 |
| commit | 1c2b6095c94ddcf1ba0c9a7aadd9f70804660b90 (patch) | |
| tree | d26518de78e81f74cfba78aa920e75f96dc3884d /web | |
| parent | 5f8c8f4525652ca053a8d0f655de32a597f26d62 (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.go | 2 |
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" { |
