From 0dbadf82c0d2d4df10f41f8e2ce0045ec5af6541 Mon Sep 17 00:00:00 2001 From: Abdalrahman Date: Wed, 13 May 2026 02:15:52 +0300 Subject: [PATCH] fix: auto-renew must re-enable client in inbound settings JSON (#4317) Since v2.9.4, disableInvalidClients sets c['enable']=false in inbound settings JSON when a client hits its limit. autoRenewClients only updated client_traffics.enable - never flipped the JSON field back. The Xray config generator checks both, so client stayed excluded after renewal. --- web/service/inbound.go | 1 + 1 file changed, 1 insertion(+) diff --git a/web/service/inbound.go b/web/service/inbound.go index ac7481a2..cb4f402b 100644 --- a/web/service/inbound.go +++ b/web/service/inbound.go @@ -2036,6 +2036,7 @@ func (s *InboundService) autoRenewClients(tx *gorm.DB) (bool, int64, error) { traffics[traffic_index].Up = 0 if !traffic.Enable { traffics[traffic_index].Enable = true + c["enable"] = true clientsToAdd = append(clientsToAdd, struct { protocol string