From 93d52bc86c4725fdfbdb629e87bbb5d24abf7d37 Mon Sep 17 00:00:00 2001 From: mhsanaei Date: Sun, 11 Aug 2024 00:47:44 +0200 Subject: new - vmess security (inbound client side - outbound) --- web/html/xui/client_bulk_modal.html | 10 +++++++++- web/html/xui/client_modal.html | 2 +- web/html/xui/form/client.html | 5 +++++ web/html/xui/form/outbound.html | 5 +++++ web/html/xui/form/protocol/vmess.html | 2 ++ web/html/xui/settings.html | 4 +++- 6 files changed, 25 insertions(+), 3 deletions(-) (limited to 'web/html') diff --git a/web/html/xui/client_bulk_modal.html b/web/html/xui/client_bulk_modal.html index 5e6d1a1f..3cdc5ff6 100644 --- a/web/html/xui/client_bulk_modal.html +++ b/web/html/xui/client_bulk_modal.html @@ -28,6 +28,11 @@ + + + [[ key ]] + + {{ i18n "none" }} @@ -146,6 +151,7 @@ emailPostfix: "", subId: "", tgId: '', + security: "auto", flow: "", delayedStart: false, reset: 0, @@ -168,6 +174,7 @@ newClient.email += useNum ? prefix + i.toString() + postfix : prefix + postfix; if (clientsBulkModal.subId.length > 0) newClient.subId = clientsBulkModal.subId; newClient.tgId = clientsBulkModal.tgId; + newClient.security = clientsBulkModal.security; newClient.limitIp = clientsBulkModal.limitIp; newClient._totalGB = clientsBulkModal.totalGB; newClient._expiryTime = clientsBulkModal.expiryTime; @@ -203,6 +210,7 @@ this.emailPostfix = ""; this.subId = ""; this.tgId = ''; + this.security = "auto"; this.flow = ""; this.dbInbound = new DBInbound(dbInbound); this.inbound = dbInbound.toInbound(); @@ -211,7 +219,7 @@ }, newClient(protocol) { switch (protocol) { - case Protocols.VMESS: return new Inbound.VmessSettings.Vmess(); + 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(clientsBulkModal.inbound.settings.shadowsockses[0].method); diff --git a/web/html/xui/client_modal.html b/web/html/xui/client_modal.html index 83fa71a3..aa62e02a 100644 --- a/web/html/xui/client_modal.html +++ b/web/html/xui/client_modal.html @@ -61,7 +61,7 @@ }, addClient(protocol, clients) { switch (protocol) { - case Protocols.VMESS: return clients.push(new Inbound.VmessSettings.Vmess()); + case Protocols.VMESS: return clients.push(new Inbound.VmessSettings.VMESS()); case Protocols.VLESS: return clients.push(new Inbound.VLESSSettings.VLESS()); case Protocols.TROJAN: return clients.push(new Inbound.TrojanSettings.Trojan()); case Protocols.SHADOWSOCKS: return clients.push(new Inbound.ShadowsocksSettings.Shadowsocks(clients[0].method)); diff --git a/web/html/xui/form/client.html b/web/html/xui/form/client.html index 845f9408..aa558824 100644 --- a/web/html/xui/form/client.html +++ b/web/html/xui/form/client.html @@ -39,6 +39,11 @@ + + + [[ key ]] + +