mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6339] [MERGED] fix(clients): sync auto-renewal across inbounds #6225
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6339
Author: @dawNotPoi
Created: 8/27/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @MHSanaei
Base:
main← Head:fix/6301-autorenew-shared-inbounds📝 Commits (2)
15a67e5fix(clients): sync auto-renewal across inboundsca1cfcefix(clients): preserve manual disable during renewal📊 Changes
2 files changed (+187 additions, -18 deletions)
View changed files
➕
internal/web/service/inbound_autorenew_shared_email_test.go(+154 -0)📝
internal/web/service/inbound_traffic.go(+33 -18)📄 Description
Summary
Why
When one email is attached to multiple inbounds, the first inbound advances the shared traffic row. Later inbounds then take the zero-renewal path and retain stale expired/disabled settings, which can overwrite the renewed state in the shared clients table.
Closes #6301.
Type of change
Areas affected
How was this tested?
go test ./internal/web/service -run TestAutoRenewClients -count=1go test -race ./internal/web/service -run TestAutoRenewClients_UpdatesEveryInboundForSharedEmail -count=1make test-gomake lint-gomake verifyBreaking changes
None.
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass. (No frontend files changed.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.