Procházet zdrojové kódy

fix switch enable function for clients

Co-Authored-By: Alireza Ahmadi <[email protected]>
MHSanaei před 1 rokem
rodič
revize
edfc2d8d93
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      web/html/xui/inbounds.html

+ 1 - 0
web/html/xui/inbounds.html

@@ -832,6 +832,7 @@
                 dbInbound = this.dbInbounds.find(row => row.id === dbInboundId);
                 inbound = dbInbound.toInbound();
                 clients = this.getClients(dbInbound.protocol, inbound.settings);
+                client.enable = !client.enable; // For finding correct index in findIndexOfClient() function
                 index = this.findIndexOfClient(clients, client);
                 clients[index].enable = !clients[index].enable;
                 clientId = this.getClientId(dbInbound.protocol, clients[index]);