fix core restart on traffic reset of disabled client

This commit is contained in:
Alireza Ahmadi
2024-10-13 15:05:29 +02:00
parent 50dba7b5b7
commit ce49394284

View File

@@ -1133,7 +1133,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" {