mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6052] [MERGED] fix(warp): preserve outbound customization when rotating IP #6065
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#6065
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/6052
Author: @H-TTTTT
Created: 7/20/2026
Status: ✅ Merged
Merged: 7/21/2026
Merged by: @MHSanaei
Base:
main← Head:fix/warp-change-ip-preserve📝 Commits (1)
5aa7e42fix(warp): preserve outbound customization when rotating IP📊 Changes
2 files changed (+142 additions, -6 deletions)
View changed files
📝
frontend/src/pages/xray/overrides/WarpModal.tsx(+43 -6)➕
frontend/src/test/warp-change-ip.test.ts(+99 -0)📄 Description
Summary
The WARP Change IP button rebuilds the
warpoutbound from a fixed default template (collectConfig) and then replaces the whole in-memory outbound viaonResetOutbound(XrayPage.tsx: tt.outbounds[index] = payload.outbound). OnlysecretKey/address/reservedand the first peer'spublicKey/endpointsurvive that rebuild, so a user's custommtu,domainStrategy,noKernelTun, the first peer'skeepAlive/allowedIPs/preSharedKey, and any extra peers are silently dropped from the editor.Because the Outbounds tab renders that in-memory copy for the rest of the session and a later page Save persists it to
/panel/api/xray/update, the loss can become permanent — even though the backendChangeWarpIP→UpdateWarpXraySettingalready patches only the rotated fields and leaves every other field (including a peer'skeepAlive) untouched in the stored template.This is a frontend-only bug; the scheduled auto IP-rotation job calls the backend method directly and is unaffected.
Changes
Verification
Fixes #6019
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.