From 1c2b6095c94ddcf1ba0c9a7aadd9f70804660b90 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 15 Oct 2024 20:54:23 +0200 Subject: [PATCH] fix core restart on traffic reset of disabled client Co-Authored-By: Alireza Ahmadi --- web/service/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" {