mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
commit
b37b12754f
1 changed files with 14 additions and 15 deletions
|
@ -1227,7 +1227,7 @@ class Inbound extends XrayCommonClass {
|
||||||
return url.toString();
|
return url.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
genLink(address='', remark='', clientIndex=0) {
|
genLink(address='', remark='') {
|
||||||
switch (this.protocol) {
|
switch (this.protocol) {
|
||||||
case Protocols.VMESS:
|
case Protocols.VMESS:
|
||||||
if (this.settings.vmesses[clientIndex].email != ""){
|
if (this.settings.vmesses[clientIndex].email != ""){
|
||||||
|
@ -1250,12 +1250,11 @@ class Inbound extends XrayCommonClass {
|
||||||
}
|
}
|
||||||
genInboundLinks(address = '', remark = '') {
|
genInboundLinks(address = '', remark = '') {
|
||||||
let link = '';
|
let link = '';
|
||||||
JSON.parse(this.settings)
|
|
||||||
switch (this.protocol) {
|
switch (this.protocol) {
|
||||||
case Protocols.VMESS:
|
case Protocols.VMESS:
|
||||||
case Protocols.VLESS:
|
case Protocols.VLESS:
|
||||||
case Protocols.TROJAN:
|
case Protocols.TROJAN:
|
||||||
JSON.parse(this.settings).clients.forEach((client,index) => {
|
JSON.parse(this.settings).clients.forEach((_,index) => {
|
||||||
link += this.genLink(address, remark, index) + '\r\n';
|
link += this.genLink(address, remark, index) + '\r\n';
|
||||||
});
|
});
|
||||||
return link;
|
return link;
|
||||||
|
|
Loading…
Reference in a new issue