mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5949] [Feature]: inbounds can set share port #4123
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#4123
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?
Originally created by @ClDaniel1 on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5949
Is your feature request related to a problem?
my inbounds in forwarded via ng, subscription share is internal port, I need share prot 443
Describe the solution you'd like
inbounds can set share port
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jul 14, 2026):
This is already supported by the Hosts feature, confirmed in the current codebase (
Hoststruct ininternal/database/model/model.go) and shipped in every release sincev3.4.0, including the current latest (v3.5.0), via PR #5409.Setup for your nginx setup:
443.Once a host exists for an inbound, every generated subscription link (raw, JSON, and Clash formats) for that inbound is built from the host's address/port instead of the inbound's own listening port. This is confirmed in
internal/sub/host_sub.go(hostToExternalProxyMap, lines 50-53):Leaving the host's port at
0keeps the inbound's real port; setting it to443only changes what appears in the share link/subscription — Xray itself keeps listening on the actual internal port, nginx still forwards to it. You can add more than one host per inbound if you need multiple public endpoints/ports.This is the same request as #5251 and #5247, both closed once this feature shipped.
Closing as already available. Please reopen or comment if your nginx setup still isn't covered by the Hosts form.
This reply was generated automatically; a maintainer may follow up.