From 8218bbce598f005a98a24ae5c1d1dcb2a83586ba Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 12 Mar 2024 23:04:11 +0330 Subject: [PATCH] limit mux to connection base outbounds Co-Authored-By: Alireza Ahmadi --- web/assets/js/model/outbound.js | 4 ++++ web/html/xui/form/outbound.html | 30 ++++++++++++++++-------------- 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index c50dc240..c3008e18 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -547,6 +547,10 @@ class Outbound extends CommonClass { return [Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(this.protocol); } + canEnableMux() { + return [Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks, Protocols.HTTP, Protocols.Socks].includes(this.protocol); + } + hasVnext() { return [Protocols.VMess, Protocols.VLESS].includes(this.protocol); } diff --git a/web/html/xui/form/outbound.html b/web/html/xui/form/outbound.html index 14bcc461..787108c2 100644 --- a/web/html/xui/form/outbound.html +++ b/web/html/xui/form/outbound.html @@ -429,21 +429,23 @@ - - - -