Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/assets/js')
-rw-r--r--web/assets/js/model/xray.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 37717c9e..2d4ba84c 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -1355,6 +1355,9 @@ class Inbound extends XrayCommonClass {
if (!ObjectUtil.isEmpty(this.stream.xtls.server)) {
address = this.stream.xtls.server;
}
+ if (this.stream.xtls.settings.serverName !== ''){
+ params.set("sni", this.stream.xtls.settings.serverName);
+ }
params.set("flow", this.settings.vlesses[clientIndex].flow);
}
@@ -1485,6 +1488,9 @@ class Inbound extends XrayCommonClass {
if (!ObjectUtil.isEmpty(this.stream.xtls.server)) {
address = this.stream.xtls.server;
}
+ if (this.stream.xtls.settings.serverName !== ''){
+ params.set("sni", this.stream.xtls.settings.serverName);
+ }
params.set("flow", this.settings.trojans[clientIndex].flow);
}