mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5208] [Bug]: #3653
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#3653
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 @DS-83 on GitHub (Jun 11, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5208
Describe the bug
When a node is added with a VLESS TCP Reality inbound configured to listen on a specific IP address (not 0.0.0.0), the generated subscription contains an incorrect server address.
Instead of using the inbound's configured listening IP address, the subscription generator uses the panel domain name of the server where the node is installed.
As a result, clients receive an invalid connection configuration and cannot connect to the intended endpoint.
How to reproduce the problem
Deploy at least two 3x-ui servers.
On Server A, configure the panel domain (for example, panel-a.example.com).
Add Server B as a node to Server A.
On Server B, create a VLESS TCP Reality inbound.
Configure the inbound to listen on a specific IP address (for example, 185.xxx.xxx.xxx) instead of 0.0.0.0.
Generate or update a subscription from Server A.
Import the subscription into a client and inspect the generated VLESS Reality configuration for the node on Server B.
Expected behavior
The generated subscription should use the IP address configured in the inbound's Listen IP field as the server address.
Example:
Actual behavior
The generated subscription ignores the configured Listen IP and instead uses the panel domain name.
Example:
This produces an incorrect client configuration when the inbound is intended to be reachable only through the specified IP address.
Relevant logs
Screenshots
No response
3x-ui version
3.3.0
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
AlmaLinux 10
Which parts of the panel are affected?
Subscription (share links / Clash / JSON)
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jun 11, 2026):
The root cause is confirmed in the source. In
internal/sub/service.go,resolveInboundAddress()(lines 800–810) applies this priority order when building subscription links:NodeIDset → returnnode.Address(the node's panel API host, e.g.panel-b.example.com)inbound.Listenis a routable, non-unix-socket address → return that listen addressBecause your inbound is node-managed (
NodeIDis set), step 1 returns the node's panel address and step 2 — which would return your explicit listen IP — is never reached. The same priority is mirrored in the frontend link builder (frontend/src/lib/xray/inbound-link.ts,resolveAddr()), so QR codes generated directly from the panel UI show the same incorrect host.There is no per-inbound override field today. A feature request (#5161) is open that proposes adding a
shareAddrStrategyfield toInboundso the user can choose between node address, listen address, or a custom value per inbound.Workaround until that is implemented
Add an External Proxy entry to the inbound. When at least one External Proxy entry is present,
resolveInboundAddressis bypassed for that inbound andep["dest"]is used directly in the generated link.185.xxx.xxx.xxx(your intended listen IP)443)sameThe generated VLESS Reality link will now use the IP you specified in the External Proxy dest field instead of the node's panel address. The Reality and XTLS-Vision parameters (
pbk,sid,sni,flow, etc.) are carried through from the inbound's stream settings unchanged.This was previously reported in #4949 with identical root cause and the same workaround. The architectural fix is tracked in #5161.
This reply was generated automatically; a maintainer may follow up.