From ae5ad505d04fa347eb96a0d2bfb54ff541c3b709 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Mon, 20 Apr 2026 16:05:27 +0200 Subject: add hysteria inbound Co-Authored-By: Alireza Ahmadi --- web/html/modals/client_bulk_modal.html | 104 ++++++++++++++++++++++----------- web/html/modals/client_modal.html | 16 +++-- 2 files changed, 81 insertions(+), 39 deletions(-) (limited to 'web/html/modals') diff --git a/web/html/modals/client_bulk_modal.html b/web/html/modals/client_bulk_modal.html index 6e61feae..282972f7 100644 --- a/web/html/modals/client_bulk_modal.html +++ b/web/html/modals/client_bulk_modal.html @@ -1,52 +1,75 @@ {{define "modals/clientsBulkModal"}} - - + + Random Random+Prefix Random+Prefix+Num - Random+Prefix+Num+Postfix + Random+Prefix+Num+Postfix Prefix+Num+Postfix - - + + - - + + - + - + - - + + - - - [[ key ]] + + + [[ + key ]] - - - {{ i18n "none" }} - [[ key ]] + + + {{ i18n "none" + }} + [[ + key ]] @@ -61,7 +84,8 @@ - + - + - + - + - - + + - - + @@ -120,7 +154,8 @@ - + @@ -214,6 +249,7 @@ 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); + case Protocols.HYSTERIA: return new Inbound.HysteriaSettings.Hysteria(); default: return null; } }, diff --git a/web/html/modals/client_modal.html b/web/html/modals/client_modal.html index a5d3e7ac..8ce0e832 100644 --- a/web/html/modals/client_modal.html +++ b/web/html/modals/client_modal.html @@ -1,10 +1,14 @@ {{define "modals/clientsModal"}} - + {{template "form/client"}} @@ -56,6 +60,7 @@ switch (protocol) { case Protocols.TROJAN: return client.password; case Protocols.SHADOWSOCKS: return client.email; + case Protocols.HYSTERIA: return client.auth; default: return client.id; } }, @@ -65,6 +70,7 @@ 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, RandomUtil.randomShadowsocksPassword(inbound.settings.method))); + case Protocols.HYSTERIA: return clients.push(new Inbound.HysteriaSettings.Hysteria()); default: return null; } }, -- cgit v1.2.3