mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-08-23 11:26:52 +00:00
fixed: mux #3185
This commit is contained in:
parent
0a9c0feec8
commit
a243365c0f
1 changed files with 18 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue