mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-18 12:05:53 +00:00
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.
This commit is contained in:
parent
48e90bba51
commit
0dbadf82c0
1 changed files with 1 additions and 0 deletions
|
|
@ -2036,6 +2036,7 @@ func (s *InboundService) autoRenewClients(tx *gorm.DB) (bool, int64, error) {
|
||||||
traffics[traffic_index].Up = 0
|
traffics[traffic_index].Up = 0
|
||||||
if !traffic.Enable {
|
if !traffic.Enable {
|
||||||
traffics[traffic_index].Enable = true
|
traffics[traffic_index].Enable = true
|
||||||
|
c["enable"] = true
|
||||||
clientsToAdd = append(clientsToAdd,
|
clientsToAdd = append(clientsToAdd,
|
||||||
struct {
|
struct {
|
||||||
protocol string
|
protocol string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue