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