mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-07-01 20:42:07 +00:00
limit mux to connection base outbounds
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
This commit is contained in:
parent
e43601ac08
commit
b042f01e58
2 changed files with 20 additions and 14 deletions
|
@ -547,6 +547,10 @@ class Outbound extends CommonClass {
|
||||||
return [Protocols.VMess, Protocols.VLESS, Protocols.Trojan, Protocols.Shadowsocks].includes(this.protocol);
|
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() {
|
hasVnext() {
|
||||||
return [Protocols.VMess, Protocols.VLESS].includes(this.protocol);
|
return [Protocols.VMess, Protocols.VLESS].includes(this.protocol);
|
||||||
}
|
}
|
||||||
|
|
|
@ -429,6 +429,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- mux settings -->
|
<!-- mux settings -->
|
||||||
|
<template v-if="outbound.canEnableMux()">
|
||||||
<a-form-item label="Mux">
|
<a-form-item label="Mux">
|
||||||
<a-switch v-model="outbound.mux.enabled"></a-switch>
|
<a-switch v-model="outbound.mux.enabled"></a-switch>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
@ -445,6 +446,7 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</template>
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-tab-pane>
|
</a-tab-pane>
|
||||||
|
|
Loading…
Reference in a new issue