From 073247f0544cf980ce01ff6f842cfa2e2b6c85c2 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 19 Mar 2023 11:51:08 +0100 Subject: [PATCH] Fix Link bug --- web/assets/js/model/xray.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/assets/js/model/xray.js b/web/assets/js/model/xray.js index 7f28e9aa..2317ba98 100644 --- a/web/assets/js/model/xray.js +++ b/web/assets/js/model/xray.js @@ -1155,10 +1155,8 @@ class Inbound extends XrayCommonClass { if (this.xtls) { if (!ObjectUtil.isEmpty(this.stream.tls.server)) { address = this.stream.tls.server; - if (type === "tcp") { - params.set("flow", this.settings.vlesses[clientIndex].flow); - } } + params.set("flow", this.settings.vlesses[clientIndex].flow); } const link = `vless://${uuid}@${address}:${port}`; @@ -1250,10 +1248,8 @@ class Inbound extends XrayCommonClass { if (this.xtls) { if (!ObjectUtil.isEmpty(this.stream.tls.server)) { address = this.stream.tls.server; - if (type === "tcp" && this.settings.trojans[clientIndex].flow.length > 0) { - params.set("flow", this.settings.trojans[clientIndex].flow); - } } + params.set("flow", this.settings.trojans[clientIndex].flow); } const link = `trojan://${settings.trojans[clientIndex].password}@${address}:${this.port}#${encodeURIComponent(remark)}`;