소스 검색

Fix Enabled/Disabled counter (#1847)

somebodywashere 1 년 전
부모
커밋
7526c4d969
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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);
                             }