mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-15 19:22:26 +08:00
feat: support mptcp and smux display
Corresponding pull request in mihomo: https://github.com/MetaCubeX/mihomo/pull/1646
This commit is contained in:
parent
20d163cf3a
commit
9892470d08
|
@ -160,6 +160,16 @@ export const ProxyItemMini = (props: Props) => {
|
|||
TFO
|
||||
</TypeBox>
|
||||
)}
|
||||
{proxy.mptcp && (
|
||||
<TypeBox color="text.secondary" component="span">
|
||||
MPTCP
|
||||
</TypeBox>
|
||||
)}
|
||||
{proxy.smux && (
|
||||
<TypeBox color="text.secondary" component="span">
|
||||
sing-mux
|
||||
</TypeBox>
|
||||
)}
|
||||
</Box>
|
||||
)}
|
||||
</Box>
|
||||
|
|
|
@ -129,6 +129,12 @@ export const ProxyItem = (props: Props) => {
|
|||
<TypeBox component="span">XUDP</TypeBox>
|
||||
)}
|
||||
{showType && proxy.tfo && <TypeBox component="span">TFO</TypeBox>}
|
||||
{showType && proxy.mptcp && (
|
||||
<TypeBox component="span">MPTCP</TypeBox>
|
||||
)}
|
||||
{showType && proxy.smux && (
|
||||
<TypeBox component="span">SMUX</TypeBox>
|
||||
)}
|
||||
</>
|
||||
}
|
||||
/>
|
||||
|
|
|
@ -122,6 +122,8 @@ export const getProxies = async () => {
|
|||
udp: false,
|
||||
xudp: false,
|
||||
tfo: false,
|
||||
mptcp: false,
|
||||
smux: false,
|
||||
history: [],
|
||||
};
|
||||
};
|
||||
|
|
5
src/services/types.d.ts
vendored
5
src/services/types.d.ts
vendored
|
@ -56,6 +56,8 @@ interface IProxyItem {
|
|||
udp: boolean;
|
||||
xudp: boolean;
|
||||
tfo: boolean;
|
||||
mptcp: boolean;
|
||||
smux: boolean;
|
||||
history: {
|
||||
time: string;
|
||||
delay: number;
|
||||
|
@ -468,6 +470,7 @@ interface IProxyVlessConfig extends IProxyBaseConfig {
|
|||
fingerprint?: string;
|
||||
servername?: string;
|
||||
"client-fingerprint"?: ClientFingerprint;
|
||||
smux?: boolean;
|
||||
}
|
||||
// vmess
|
||||
interface IProxyVmessConfig extends IProxyBaseConfig {
|
||||
|
@ -496,6 +499,7 @@ interface IProxyVmessConfig extends IProxyBaseConfig {
|
|||
"global-padding"?: boolean;
|
||||
"authenticated-length"?: boolean;
|
||||
"client-fingerprint"?: ClientFingerprint;
|
||||
smux?: boolean;
|
||||
}
|
||||
interface WireGuardPeerOptions {
|
||||
server?: string;
|
||||
|
@ -604,6 +608,7 @@ interface IProxyShadowsocksConfig extends IProxyBaseConfig {
|
|||
"udp-over-tcp"?: boolean;
|
||||
"udp-over-tcp-version"?: number;
|
||||
"client-fingerprint"?: ClientFingerprint;
|
||||
smux?: boolean;
|
||||
}
|
||||
// shadowsocksR
|
||||
interface IProxyshadowsocksRConfig extends IProxyBaseConfig {
|
||||
|
|
Loading…
Reference in New Issue
Block a user