Skip to content

Commit dd4c2ad

Browse files
authored
Fix non-MultiUser dbInbounds (#2649)
1 parent 2dec7f4 commit dd4c2ad

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

web/html/xui/client_modal.html

+10-6
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@
120120
this.group.isGroup = true;
121121
dbInbounds.forEach((dbInboundItem) => {
122122
this.showProcess(dbInboundItem);
123-
this.addClient(this.inbound.protocol, this.clients);
124-
this.group.inbounds.push(dbInboundItem.id)
125-
this.group.clients.push(this.clients[this.index])
123+
if (this.dbInbound.isMultiUser()) {
124+
this.addClient(this.inbound.protocol, this.clients);
125+
this.group.inbounds.push(dbInboundItem.id)
126+
this.group.clients.push(this.clients[this.index])
127+
}
126128
})
127129
this.group.currentClient = this.clients[this.index]
128130
}
@@ -140,9 +142,11 @@
140142
showProcess(dbInbound, index = null) {
141143
this.dbInbound = new DBInbound(dbInbound);
142144
this.inbound = dbInbound.toInbound();
143-
this.clients = this.inbound.clients;
144-
this.index = index === null ? this.clients.length : index;
145-
this.delayedStart = false;
145+
if (this.dbInbound.isMultiUser()) {
146+
this.clients = this.inbound.clients;
147+
this.index = index === null ? this.clients.length : index;
148+
this.delayedStart = false;
149+
}
146150
},
147151
singleEditClientProcess(index) {
148152
if (this.clients[index].expiryTime < 0) {

0 commit comments

Comments
 (0)