fix core restart on traffic reset of disabled client

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
MHSanaei 2024-10-15 20:54:23 +02:00
parent 5f8c8f4525
commit 1c2b6095c9
No known key found for this signature in database
GPG Key ID: 7E4060F2FBE5AB7A

View File

@ -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" {