mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #2961] [Feature Request] Sub System: Return Server IP in Config Instead of Domain #1980
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#1980
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 @Dylariz on GitHub (Apr 30, 2025).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/2961
Is your feature request related to a problem?
I'm using the 3XUI panel with a domain for my VPN server (e.g., vpn.example.com) and subscriptions system. When clients access their subscription link, they are provided with a VPN configuration that contains the domain (e.g., vpn.example.com) in the server name field. This requires a DNS lookup, and if the domain gets blocked, the connection can be disrupted. Additionally, DNS resolution adds some delay in establishing the VPN connection.
Describe the solution you'd like
Example:
When a client accesses a subscription link like:
https://vpn.example.com:2299/sub/user1-xxxxxxxxxxxxxxx
Instead of receiving a config like this (which uses the domain):
vless://12345678-1234-1234-1234-123456789abc@vpn.example.com:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN
It should return something like this (which uses the IP address instead):
vless://12345678-1234-1234-1234-123456789abc@123.123.123.123:443?type=tcp&security=reality&pbk=AbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdEfG&fp=chrome&sni=cloudflare.com&sid=abcdef12&spx=%2Fdns-query%2F&flow=xtls-rprx-vision#Test-VPN
Describe alternatives you've considered
Currently, I have to rely on DNS resolution, which can lead to issues if the domain gets blocked or DNS performance degrades. Using the IP directly in the config would be a more stable solution.
Checklist
@somebodywashere commented on GitHub (May 2, 2025):
It's possible to write an IP or any other domain you want in "External Proxy" option of Inbound.