mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #3891] [Bug report]: Invalid subscription. Client ip used as Inbound when reverse-proxy used. #2629
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#2629
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 @MKC-MKC on GitHub (Mar 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3891
Describe the bug
When 3x-ui is deployed behind a reverse proxy (like: Nginx Proxy Manager), subscription links are generated with the wrong host:
Instead of using subscription settings (Sub Domain / Subscribe URI / server host), 3x-ui may use client-related request data (IP) and produce incorrect addresses in subscription output (including what clients like v2rayTun receive and others).
As a result, generated subscription endpoints can point to an invalid host for real client use.
Means,
Subscription links should always use configured subscription host/base URI (or proxy host), never client IP.
If an incoming request clearly indicates the need for listening, this also must be taken into account when creating a subscription also in JSON format.
How to repeat the problem?
Settings->Subscription.client ip addressinstead ofinbound (server) ip address.Expected action
No response
Received action
No response
3x-ui Version
any
Xray-core Version
No response
Checklist
@MKC-MKC commented on GitHub (Mar 6, 2026):
and now, you can use ur pub ip and port as proxy.
and subscription now returns valid address inside subscription.
@MKC-MKC commented on GitHub (Mar 6, 2026):
Hmm. maybe I made a mistake in logic. I'll go for a review.
@pavel-trubitsyn commented on GitHub (Apr 9, 2026):
Is it actual? Where is the setting? I cannot find it in web ui.
UPD: For those who is seeking for this setting - it is located inside each Inbound connection.
@MKC-MKC commented on GitHub (Apr 9, 2026):
Click
Add Inbound, then, u cn fndExternal ProxynearSecurityin yrVLESSconfig.No changes needed...