Browse Source

fix core restart on traffic reset of disabled client

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 4 months ago
parent
commit
1c2b6095c9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/service/inbound.go

+ 1 - 1
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" {