diff options
| author | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-07-04 15:02:33 +0300 |
|---|---|---|
| committer | mhsanaei <ho3ein.sanaei@gmail.com> | 2025-07-04 15:02:33 +0300 |
| commit | ce76cedb0dbebdcc6ea76b14b41334cf92e91f81 (patch) | |
| tree | 9be6c0a62f3a3b56dc1cc7258c69b73cd0e8b9e6 | |
| parent | 24a313d60519b53814925ab3178657cb627f7187 (diff) | |
fixed: mux #3185
| -rw-r--r-- | web/assets/js/model/outbound.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/web/assets/js/model/outbound.js b/web/assets/js/model/outbound.js index 0103b1e8..89a11652 100644 --- a/web/assets/js/model/outbound.js +++ b/web/assets/js/model/outbound.js @@ -616,11 +616,27 @@ class Outbound extends CommonClass { } canEnableMux() { - if (this.settings.flow && this.settings.flow != '') { + // Disable Mux if flow is set + if (this.settings.flow && this.settings.flow !== '') { this.mux.enabled = false; return false; } - return [Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks, Protocols.HTTP, Protocols.Socks].includes(this.protocol); + + // Disable Mux if network is xhttp + if (this.stream.network === 'xhttp') { + this.mux.enabled = false; + return false; + } + + // Allow Mux only for these protocols + return [ + Protocols.VMess, + Protocols.VLESS, + Protocols.Trojan, + Protocols.Shadowsocks, + Protocols.HTTP, + Protocols.Socks + ].includes(this.protocol); } hasVnext() { |
