mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-04-19 21:42:24 +00:00
Fix non-MultiUser dbInbounds (#2649)
This commit is contained in:
parent
2dec7f48f5
commit
dd4c2adb37
1 changed files with 10 additions and 6 deletions
|
@ -120,9 +120,11 @@
|
||||||
this.group.isGroup = true;
|
this.group.isGroup = true;
|
||||||
dbInbounds.forEach((dbInboundItem) => {
|
dbInbounds.forEach((dbInboundItem) => {
|
||||||
this.showProcess(dbInboundItem);
|
this.showProcess(dbInboundItem);
|
||||||
this.addClient(this.inbound.protocol, this.clients);
|
if (this.dbInbound.isMultiUser()) {
|
||||||
this.group.inbounds.push(dbInboundItem.id)
|
this.addClient(this.inbound.protocol, this.clients);
|
||||||
this.group.clients.push(this.clients[this.index])
|
this.group.inbounds.push(dbInboundItem.id)
|
||||||
|
this.group.clients.push(this.clients[this.index])
|
||||||
|
}
|
||||||
})
|
})
|
||||||
this.group.currentClient = this.clients[this.index]
|
this.group.currentClient = this.clients[this.index]
|
||||||
}
|
}
|
||||||
|
@ -140,9 +142,11 @@
|
||||||
showProcess(dbInbound, index = null) {
|
showProcess(dbInbound, index = null) {
|
||||||
this.dbInbound = new DBInbound(dbInbound);
|
this.dbInbound = new DBInbound(dbInbound);
|
||||||
this.inbound = dbInbound.toInbound();
|
this.inbound = dbInbound.toInbound();
|
||||||
this.clients = this.inbound.clients;
|
if (this.dbInbound.isMultiUser()) {
|
||||||
this.index = index === null ? this.clients.length : index;
|
this.clients = this.inbound.clients;
|
||||||
this.delayedStart = false;
|
this.index = index === null ? this.clients.length : index;
|
||||||
|
this.delayedStart = false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
singleEditClientProcess(index) {
|
singleEditClientProcess(index) {
|
||||||
if (this.clients[index].expiryTime < 0) {
|
if (this.clients[index].expiryTime < 0) {
|
||||||
|
|
Loading…
Reference in a new issue