[GH-ISSUE #1715] Generated Links for TLS and VLESS are wrong #1164

Closed
opened 2026-10-31 20:16:56 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Amir-Eskandari on GitHub (Jan 30, 2024).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1715

Welcome

  • Yes, I'm using the latest major release. Only such installations are supported.
  • Yes, I'm using the supported system. Only such systems are supported.
  • Yes, I have read all WIKI document,nothing can help me in my problem.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, log, etc).

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

# 2.1.2

x-ui log reports or xray log

# No Log
Originally created by @Amir-Eskandari on GitHub (Jan 30, 2024). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/1715 ### Welcome - [X] Yes, I'm using the latest major release. Only such installations are supported. - [X] Yes, I'm using the supported system. Only such systems are supported. - [X] Yes, I have read all WIKI document,nothing can help me in my problem. - [X] Yes, I've searched similar issues on GitHub and didn't find any. - [X] Yes, I've included all information below (version, config, log, etc). ### 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 <details> ```console # 2.1.2 ``` </details> ### x-ui log reports or xray log <details> ```console # No Log ``` </details>
Author
Owner

@Amir-Eskandari commented on GitHub (Feb 9, 2024):

was my mistake, I should have used external proxy in my inbound config

<!-- gh-comment-id:1935818949 --> @Amir-Eskandari commented on GitHub (Feb 9, 2024): was my mistake, I should have used external proxy in my inbound config
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#1164
No description provided.