Browse Source

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.
Abdalrahman 12 giờ trước cách đây
mục cha
commit
0dbadf82c0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      web/service/inbound.go

+ 1 - 0
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