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:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-03-19 14:09:51 +0300
committerGitHub <noreply@github.com>2023-03-19 14:09:51 +0300
commitc5bbee354f7c6e6a8dc52a8a9e5421c92406d0b1 (patch)
tree3b7015834beef208c794e0432c5b2c1992bc19a8
parent63acd585ba8d5c85aa2ac67521f9d31a7db05ade (diff)
parentfe7ce3f74bf84354bdd5eef0c3ef685f1013bff5 (diff)
Merge pull request #34 from MHSanaei/devv1.1.1
i hate myself
-rw-r--r--web/assets/js/model/xray.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 7fdf557c..360f4bae 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -1157,8 +1157,11 @@ class Inbound extends XrayCommonClass {
}
if (this.XTLS) {
- params.set("flow", this.settings.vlesses[clientIndex].flow);
+ if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
+ address = this.stream.tls.server;
}
+ params.set("flow", this.settings.vlesses[clientIndex].flow);
+ }
const link = `vless://${uuid}@${address}:${port}`;
const url = new URL(link);
@@ -1246,8 +1249,11 @@ class Inbound extends XrayCommonClass {
}
}
- if (this.XTLS) {
- params.set("flow", this.settings.trojans[clientIndex].flow);
+ if (this.XTLS) {
+ if (!ObjectUtil.isEmpty(this.stream.tls.server)) {
+ address = this.stream.tls.server;
+ }
+ params.set("flow", this.settings.trojans[clientIndex].flow);
}
const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;