Merge pull request #34 from MHSanaei/dev

i hate myself
This commit is contained in:
MHSanaei 2023-03-19 14:39:51 +03:30 committed by GitHub
commit c5bbee354f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)}`;