From 40b6d7707a8d7856eb97e00ea7c86052859ce162 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 11 Sep 2025 11:48:30 +0200 Subject: Fix critical bugs in ObjectUtil.equals() and filterInbounds() functions (#3451) * Initial plan * Fix ObjectUtil.equals asymmetric comparison and filterInbounds null pointer bugs Co-authored-by: MHSanaei <33454419+MHSanaei@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: MHSanaei <33454419+MHSanaei@users.noreply.github.com> --- web/html/inbounds.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'web/html/inbounds.html') diff --git a/web/html/inbounds.html b/web/html/inbounds.html index 830c940f..58a4e5a5 100644 --- a/web/html/inbounds.html +++ b/web/html/inbounds.html @@ -983,11 +983,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); } -- cgit v1.2.3