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 13:45:05 +0300
committerGitHub <noreply@github.com>2023-03-19 13:45:05 +0300
commit63acd585ba8d5c85aa2ac67521f9d31a7db05ade (patch)
tree06cb353323f771d0dbefe42c02cba914a9c63280
parent1777f257a8b1668ef2be29d29955bc24bacd61b3 (diff)
parent9a1cf704514103cadd2791cf8c0e049e4940486a (diff)
Merge pull request #33 from MHSanaei/xray.js
Update xray.js
-rw-r--r--web/assets/js/model/xray.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js
index 47c5b04b..7fdf557c 100644
--- a/web/assets/js/model/xray.js
+++ b/web/assets/js/model/xray.js
@@ -1157,10 +1157,8 @@ class Inbound extends XrayCommonClass {
}
if (this.XTLS) {
- if (type === "tcp") {
params.set("flow", this.settings.vlesses[clientIndex].flow);
- }
- }
+ }
const link = `vless://${uuid}@${address}:${port}`;
const url = new URL(link);
@@ -1249,10 +1247,8 @@ class Inbound extends XrayCommonClass {
}
if (this.XTLS) {
- if (type === "tcp" && this.settings.trojans[clientIndex].flow.length > 0) {
params.set("flow", this.settings.trojans[clientIndex].flow);
- }
- }
+ }
const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;
const url = new URL(link);