mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-20 05:52:24 +00:00
Update xray.js
This commit is contained in:
parent
8c6c9ace79
commit
12828b6a15
1 changed files with 3 additions and 3 deletions
|
@ -1284,18 +1284,18 @@ class Inbound extends XrayCommonClass {
|
||||||
switch (this.protocol) {
|
switch (this.protocol) {
|
||||||
case Protocols.VMESS:
|
case Protocols.VMESS:
|
||||||
if (this.settings.vmesses[clientIndex].email != ""){
|
if (this.settings.vmesses[clientIndex].email != ""){
|
||||||
remark = this.settings.vmesses[clientIndex].email
|
remark += '-' + this.settings.vmesses[clientIndex].email
|
||||||
}
|
}
|
||||||
return this.genVmessLink(address, remark, clientIndex);
|
return this.genVmessLink(address, remark, clientIndex);
|
||||||
case Protocols.VLESS:
|
case Protocols.VLESS:
|
||||||
if (this.settings.vlesses[clientIndex].email != ""){
|
if (this.settings.vlesses[clientIndex].email != ""){
|
||||||
remark = this.settings.vlesses[clientIndex].email
|
remark += '-' + this.settings.vlesses[clientIndex].email
|
||||||
}
|
}
|
||||||
return this.genVLESSLink(address, remark, clientIndex);
|
return this.genVLESSLink(address, remark, clientIndex);
|
||||||
case Protocols.SHADOWSOCKS: return this.genSSLink(address, remark);
|
case Protocols.SHADOWSOCKS: return this.genSSLink(address, remark);
|
||||||
case Protocols.TROJAN:
|
case Protocols.TROJAN:
|
||||||
if (this.settings.trojans[clientIndex].email != ""){
|
if (this.settings.trojans[clientIndex].email != ""){
|
||||||
remark = this.settings.trojans[clientIndex].email
|
remark += '-' + this.settings.trojans[clientIndex].email
|
||||||
}
|
}
|
||||||
return this.genTrojanLink(address, remark, clientIndex);
|
return this.genTrojanLink(address, remark, clientIndex);
|
||||||
default: return '';
|
default: return '';
|
||||||
|
|
Loading…
Reference in a new issue