From ce49394284d8615abb5f5d42074301f49f15df01 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 13 Oct 2024 15:05:29 +0200 Subject: [PATCH] fix core restart on traffic reset of disabled client --- 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 1f29d1b7..c8373dd3 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -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" {