mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4949] [Bug]: The other node's inbound always #3471
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#3471
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 @liolilin on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4949
Describe the bug
1、I use a 3x-ui manage the other node's inbound. And the other node is linked by the Domain Name not the ip address.
2、BUT when I generate qr or copy link,always the Domain Name not the ip address.
3、The other Inbound settings: The Address field is explicitly set to my server's external VPS IP. Can't fix this behavior.
The issues is smiliar to the #4798
How to reproduce the problem
1、create client
2、Attached others node inbounds
3、generate qr or copy link
4、open qr/link
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.2.7
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 24.04
Which parts of the panel are affected?
No response
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 5, 2026):
Thanks for the clear English write-up. This is a known design priority in the subscription/link generator, and there is a workaround available today.
Root cause
When an inbound is attached to a node (
NodeIDis set), the address used in QR codes and subscription links comes from the Node'sAddressfield, not from the inbound's ownListen/Addressfield. The relevant code is insub/subService.go:The same priority is mirrored in the frontend (
frontend/src/lib/xray/inbound-link.ts,resolveAddr()). So even though you explicitly set the IP in the inbound's Address field, that field is ignored for node-managed inbounds — the node's domain is always returned first.Workaround — External Proxy
The comment on that function says:
You can add an External Proxy entry directly on the inbound to override the advertised address in generated links. This does not affect how the panel API connects to the node.
Steps:
1.2.3.4)same(keeps whatever TLS the inbound uses)Once at least one External Proxy entry exists,
sub/subService.gousesep["dest"]andep["port"]for the generated link instead of the node address — the node domain no longer appears in the QR/subscription URL.This was previously reported in #4888
Your Chinese-language report in #4888 described the identical scenario. The owner confirmed the node-address priority is intentional but did not provide this workaround in that thread before closing. If External Proxy does not solve your case (e.g. TLS/REALITY settings don't carry over correctly), please describe the inbound's protocol and transport type here so it can be investigated further.