mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #1715] Generated Links for TLS and VLESS are wrong #1164
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#1164
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 @Amir-Eskandari on GitHub (Jan 30, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1715
Welcome
Description of the problem,screencshot would be good
If you set the inblound protocol on VLESS and security on TLS, the generated Config and QR code would be wrong cuase it uses the address to generate the link and not the SNI
file: /web/assets/js/model/xray.js
line: 1339
const link =
vless://${uuid}@${address}:${port};"address" must be replaced by "SNI" in case of using TLS
The address here is the registered domain and not the SNI
and also for the same reason fetched configuration from subscription won't work cuase it is also using address instead of SNI
file: /sub/subService.go
line: 447
link := fmt.Sprintf("vless://%s@%s:%d", uuid, address, port)
"address" must be replaced by "SNI" in case of using TLS
Version of 3x-ui
x-ui log reports or xray log
@Amir-Eskandari commented on GitHub (Feb 9, 2024):
was my mistake, I should have used external proxy in my inbound config