diff options
| author | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-03-19 13:43:19 +0300 |
|---|---|---|
| committer | MHSanaei <33454419+MHSanaei@users.noreply.github.com> | 2023-03-19 13:43:19 +0300 |
| commit | 9a1cf704514103cadd2791cf8c0e049e4940486a (patch) | |
| tree | 06cb353323f771d0dbefe42c02cba914a9c63280 | |
| parent | 1777f257a8b1668ef2be29d29955bc24bacd61b3 (diff) | |
Update xray.js
| -rw-r--r-- | web/assets/js/model/xray.js | 8 |
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); |
