mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4629] [Bug]: client link generation is broken behind a reverse proxy #3183
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#3183
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 @unti1x on GitHub (May 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4629
Describe the bug
The server uses
X-Real-IPheader to generate links whenX-Forwarded-Hostis not set. This affects normal links and qrcodes (/panel/api/clients/subLinks/:id) but not "Export inbound links" dialog since it's client-side.I don't think
X-Real-IPshould be used at all. And I don't really understand why the panel doesn't use justHostor a host name from its settingsHow to reproduce the problem
Expected behavior
The link contains a proper domain name
Actual behavior
The link contains current user's ip instead of a domain name
Relevant logs
Screenshots
No response
3x-ui version
3.1.0 and above
Xray-core version
No response
How did you install 3x-ui?
Docker / Docker Compose
Operating system
Ubuntu 24.04
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?
Yes — Nginx
Before submitting
@MHSanaei commented on GitHub (May 28, 2026):
How did you install 3x-ui?
Docker / Docker Compose
the docker version still not ready how did you install it
https://github.com/MHSanaei/3x-ui/actions/runs/26599162626
@unti1x commented on GitHub (May 30, 2026):
Docker and manual build. I mean I tested it on the main branch as well.