mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5006] [MERGED] fix(xray): sync routing rules when outbound tag is renamed #5754
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#5754
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/5006
Author: @nima1024m
Created: 6/6/2026
Status: ✅ Merged
Merged: 6/8/2026
Merged by: @MHSanaei
Base:
main← Head:fix/outbound-rename-routing-sync📝 Commits (8)
343d4f9chore: ignore local .cursor directory5d57965fix(xray): sync routing rules when outbound tag is renamed8338607Merge branch 'main' into fix/outbound-rename-routing-syncdfbb76ftest: mock HttpUtil to fix unhandled vitest rejectionsc1638aatest(frontend): mock axios globally to prevent flaky network errors on CI95797d1Merge pull request #2 from rqzbeh/fix/outbound-rename-routing-syncca6e045test(frontend): fix eslint any errors in component test setupd15c375Merge pull request #3 from rqzbeh/fix/pr3📊 Changes
6 files changed (+121 additions, -6 deletions)
View changed files
📝
.gitignore(+1 -0)📝
frontend/src/pages/xray/XrayPage.tsx(+3 -5)📝
frontend/src/pages/xray/basics/helpers.ts(+33 -0)📝
frontend/src/pages/xray/outbounds/OutboundsTab.tsx(+7 -1)➕
frontend/src/test/outbound-tag-rename.test.ts(+61 -0)📝
frontend/src/test/setup.components.ts(+16 -0)📄 Description
Summary
Why
Editing an outbound only updated the outbounds array. Routing rules store outboundTag as a plain string, so renaming left rules pointing at a tag that no longer exists. Balancer renames and WARP/Nord outbound resets already updated references; the regular Outbounds edit path did not.
Files affected
Test plan
Risks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.