|
@@ -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() {
|