Skip to content

Commit

Permalink
Fix non-MultiUser dbInbounds (#2649)
Browse files Browse the repository at this point in the history
  • Loading branch information
localzet authored Jan 26, 2025
1 parent 2dec7f4 commit dd4c2ad
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions web/html/xui/client_modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@
this.group.isGroup = true;
dbInbounds.forEach((dbInboundItem) => {
this.showProcess(dbInboundItem);
this.addClient(this.inbound.protocol, this.clients);
this.group.inbounds.push(dbInboundItem.id)
this.group.clients.push(this.clients[this.index])
if (this.dbInbound.isMultiUser()) {
this.addClient(this.inbound.protocol, this.clients);
this.group.inbounds.push(dbInboundItem.id)
this.group.clients.push(this.clients[this.index])
}
})
this.group.currentClient = this.clients[this.index]
}
Expand All @@ -140,9 +142,11 @@
showProcess(dbInbound, index = null) {
this.dbInbound = new DBInbound(dbInbound);
this.inbound = dbInbound.toInbound();
this.clients = this.inbound.clients;
this.index = index === null ? this.clients.length : index;
this.delayedStart = false;
if (this.dbInbound.isMultiUser()) {
this.clients = this.inbound.clients;
this.index = index === null ? this.clients.length : index;
this.delayedStart = false;
}
},
singleEditClientProcess(index) {
if (this.clients[index].expiryTime < 0) {
Expand Down

0 comments on commit dd4c2ad

Please sign in to comment.