Browse Source

Fix Enabled/Disabled counter (#1847)

somebodywashere 1 năm trước cách đây
mục cha
commit
7526c4d969
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      web/html/xui/inbounds.html

+ 2 - 2
web/html/xui/inbounds.html

@@ -651,9 +651,9 @@
                     clientCount = clients.length;
                     if (dbInbound.enable) {
                         clients.forEach(client => {
-                            if (client.enable && this.isClientOnline(client.email)) {
+                            if (client.enable) {
                                 active.push(client.email);
-                                online.push(client.email);
+                                if (this.isClientOnline(client.email)) online.push(client.email);
                             } else {
                                 deactive.push(client.email);
                             }