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/assets/js/model/outbound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/assets/js/model/outbound.js') diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 56606231..b8ec4c12 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -782,8 +782,8 @@ class Outbound extends CommonClass { } canEnableTls() { - if (![Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks, Protocols.Hysteria].includes(this.protocol)) return false; - if (this.protocol === Protocols.Hysteria) return this.stream.network === 'hysteria'; + if (this.protocol === Protocols.Hysteria) return true; + if (![Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(this.protocol)) return false; return ["tcp", "ws", "http", "grpc", "httpupgrade", "xhttp"].includes(this.stream.network); } -- cgit v1.2.3