Explorar o código

Fix Enabled/Disabled counter (#1847)

somebodywashere hai 1 ano
pai
achega
7526c4d969
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
                             }