Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMHSanaei <ho3ein.sanaei@gmail.com>2023-08-12 16:48:24 +0300
committerMHSanaei <ho3ein.sanaei@gmail.com>2023-08-12 16:48:24 +0300
commitae7283fc730fd64ab91f39c2c8947efce1009525 (patch)
tree8a798620a45e0349e62adc46936aa1b4f1acb92d /web/html/xui/inbounds.html
parent51a7c56cae3a4f39b6222f652324add4c9cfe0b3 (diff)
fix finding client issue #884
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
Diffstat (limited to 'web/html/xui/inbounds.html')
-rw-r--r--web/html/xui/inbounds.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/html/xui/inbounds.html b/web/html/xui/inbounds.html
index 91431b5d..0df42deb 100644
--- a/web/html/xui/inbounds.html
+++ b/web/html/xui/inbounds.html
@@ -726,8 +726,7 @@
});
},
findIndexOfClient(clients, client) {
- firstKey = Object.keys(client)[0];
- return clients.findIndex(c => c[firstKey] === client[firstKey]);
+ return clients.findIndex(item => JSON.stringify(item) === JSON.stringify(client));
},
async addClient(clients, dbInboundId) {
const data = {