浏览代码

fix finding client issue #884

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei 1 年之前
父节点
当前提交
ae7283fc73
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      web/html/xui/inbounds.html

+ 1 - 2
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 = {