diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index e9676252..01d32231 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1336,7 +1336,7 @@ class Inbound extends XrayCommonClass { params.set("security", "none"); } - const link = `vless://${uuid}@${address}:${port}`; + const link = `vless://${uuid}@${this.stream.tls.sni}:${port}`; const url = new URL(link); for (const [key, value] of params) { url.searchParams.set(key, value) @@ -2322,4 +2322,4 @@ Inbound.WireguardSettings.Peer = class extends XrayCommonClass { keepAlive: this.keepAlive?? undefined, }; } -}; \ No newline at end of file +};