From 312c551cfb1c3115e3f3abca9b9231bc7f9b9b31 Mon Sep 17 00:00:00 2001 From: Alireza Ahmadi Date: Sun, 30 Jul 2023 16:26:20 +0200 Subject: [PATCH] [SS] fix bulk creation --- web/html/xui/client_bulk_modal.html | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index bccfeba4..c78315dc 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -210,21 +210,12 @@ this.inbound = dbInbound.toInbound(); this.delayedStart = false; }, - getClients(protocol, clientSettings) { - switch(protocol){ - case Protocols.VMESS: return clientSettings.vmesses; - case Protocols.VLESS: return clientSettings.vlesses; - case Protocols.TROJAN: return clientSettings.trojans; - case Protocols.SHADOWSOCKS: return clientSettings.shadowsockses; - default: return null; - } - }, newClient(protocol) { switch (protocol) { case Protocols.VMESS: return new Inbound.VmessSettings.Vmess(); case Protocols.VLESS: return new Inbound.VLESSSettings.VLESS(); case Protocols.TROJAN: return new Inbound.TrojanSettings.Trojan(); - case Protocols.SHADOWSOCKS: return new Inbound.ShadowsocksSettings.Shadowsocks(); + case Protocols.SHADOWSOCKS: return new Inbound.ShadowsocksSettings.Shadowsocks(clientsBulkModal.inbound.settings.shadowsockses[0].method); default: return null; } },