mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #6453] [MERGED] fix(frontend): fold sockopt v6only into V6Only on inbound load #6275
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#6275
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/6453
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @MHSanaei
Base:
main← Head:fix/sockopt-v6only-fold📝 Commits (1)
90b6c05fix(frontend): fold sockopt v6only into V6Only on inbound load📊 Changes
1 file changed (+10 additions, -2 deletions)
View changed files
📝
frontend/src/lib/xray/inbound-form-adapter.ts(+10 -2)📄 Description
Summary
Fixes #6421.
Loading a stored sockopt that uses Xray-style lowercase
v6onlymerged the raw object with Zod defaults and produced bothv6onlyandV6Onlyin Advanced Configuration. The form switch binds toV6Only, so a storedv6only: truerendered as off and could not be cleared.Fold
v6onlyintoV6Onlyat the load boundary inrawInboundToFormValuesand drop the lowercase key before the raw∪parsed merge. Port-conflict / multi-address listener behavior is intentionally out of scope here.Test plan
"v6only": trueV6Onlyappears (no duplicate lowercase key)V6Onlystill round-trip unchanged🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.