mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6365] [CLOSED] feat(inbounds): add automatic REALITY short ID rotation #6235
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#6235
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/6365
Author: @nickshiro
Created: 8/30/2026
Status: ❌ Closed
Base:
main← Head:feat/reality-shortid-rotation📝 Commits (4)
cc03bc9feat(inbounds): add automatic REALITY short ID rotation9166002Merge branch 'main' into feat/reality-shortid-rotation59691dfMerge branch 'main' into feat/reality-shortid-rotation5420d71fix(inbounds): repair REALITY short ID rotation review findings📊 Changes
43 files changed (+2111 additions, -19 deletions)
View changed files
📝
docs/public/openapi.json(+72 -0)📝
frontend/public/openapi.json(+72 -0)📝
frontend/src/generated/examples.ts(+9 -0)📝
frontend/src/generated/schemas.ts(+54 -0)📝
frontend/src/generated/types.ts(+10 -0)📝
frontend/src/generated/zod.ts(+12 -0)📝
frontend/src/lib/xray/inbound-form-adapter.ts(+16 -0)📝
frontend/src/models/dbinbound.ts(+12 -0)📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+2 -0)📝
frontend/src/pages/inbounds/form/security/reality.tsx(+60 -2)📝
frontend/src/pages/inbounds/form/useSecurityActions.ts(+3 -0)📝
frontend/src/schemas/forms/inbound-form.ts(+4 -0)📝
frontend/src/test/__snapshots__/inbound-form-blocks.test.tsx.snap(+4 -0)📝
frontend/src/test/inbound-form-adapter.test.ts(+24 -0)📝
frontend/src/test/inbound-form-blocks.test.tsx(+7 -0)📝
internal/database/db.go(+46 -0)📝
internal/database/model/model.go(+12 -0)➕
internal/database/reality_shortid_rotation_schema_test.go(+118 -0)📝
internal/sub/clash_service.go(+6 -6)📝
internal/sub/json_service.go(+10 -6)...and 23 more files
📄 Description
Summary
Add configurable automatic rotation of REALITY
shortIdsfor VLESS inbounds.graceperiodWhy
Feature request in #6014
Type of change
Areas affected
How was this tested?
Backend tests:
The tests cover:
Frontend tests:
Result: 126 test files and 1213 tests passed.
Screenshots / recordings
Breaking changes
None.
Rotation is disabled by default, so existing inbounds retain their current behavior. New database columns are added automatically through the existing migration system.
Checklist
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.