mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4480] [MERGED] Add support for mark and interface fields in outbound sockopt settings #5705
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#5705
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/4480
Author: @githacs2022
Created: 5/20/2026
Status: ✅ Merged
Merged: 5/20/2026
Merged by: @MHSanaei
Base:
main← Head:main📝 Commits (2)
e289089Add SockOpt.Mark and SockOpt.Interface parameters for Outbound streamfd9213dMerge branch 'MHSanaei:main' into main📊 Changes
2 files changed (+18 additions, -2 deletions)
View changed files
📝
frontend/src/models/outbound.js(+12 -2)📝
frontend/src/pages/xray/OutboundFormModal.vue(+6 -0)📄 Description
What is the pull request?
This pull request adds support for
markandinterfacefields in outboundsockoptsettings in the 3x-ui web panel.Previously, outbound sockopt settings in the frontend exposed only a limited subset of Xray fields such as
dialerProxy,tcpFastOpen,tcpKeepAliveInterval,tcpMptcp,penetrate, andaddressPortStrategy. This change extends the outbound sockopt model and UI form to support configuringmark(fwmark) andinterface, allowing advanced routing scenarios such as policy-based routing and explicit outbound interface selection.The implementation includes:
SockoptStreamSettingsinfrontend/src/models/outbound.jsmarkandinterfaceNameparsing/serialization infromJson()/toJson()frontend/src/pages/xray/OutboundFormModal.vueNo backend or database changes are required because outbound settings are already stored and passed through as JSON.
Which part of the application is affected by the change?
Type of Changes
Screenshots
Added new outbound Sockopt fields:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.