Fix critical bugs in ObjectUtil.equals() and filterInbounds()

This commit is contained in:
心隨緣動 2025-09-11 21:12:32 +08:00 committed by GitHub
parent a574638cad
commit e59ffa29e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -994,11 +994,13 @@
const list = this.clientCount[inbound.id][this.filterBy];
if (list.length > 0) {
const filteredSettings = { "clients": [] };
inboundSettings.clients.forEach(client => {
if (list.includes(client.email)) {
filteredSettings.clients.push(client);
}
});
if (inboundSettings.clients) {
inboundSettings.clients.forEach(client => {
if (list.includes(client.email)) {
filteredSettings.clients.push(client);
}
});
}
newInbound.settings = Inbound.Settings.fromJson(inbound.protocol, filteredSettings);
this.searchedInbounds.push(newInbound);
}