add:tcp concurrency

This commit is contained in:
Ahao
2025-05-30 14:05:59 +08:00
parent 25acb8121f
commit 6440f856a2
3 changed files with 24 additions and 0 deletions

View File

@@ -55,6 +55,7 @@
- 更精细化控制自动日志清理新增1天选项
- Winodws 快捷键名称改为 `Clash Verge`
- 配置加载阶段自动补全 external-controller secret 字段。
- 添加 TCP Concurrency (TCP并发)
#### 优化了:
- 系统代理 Bypass 设置

View File

@@ -39,6 +39,7 @@ const SettingClash = ({ onError }: Props) => {
const {
ipv6,
"tcp-concurrent": tcp,
"allow-lan": allowLan,
"log-level": logLevel,
"unified-delay": unifiedDelay,
@@ -180,6 +181,27 @@ const SettingClash = ({ onError }: Props) => {
</GuardState>
</SettingItem>
<SettingItem
label={t("TCP Concurrency")}
extra={
<TooltipIcon
title={t("TCP ConcurrencyWhen accessing a web page, DNS resolution generally results in multiple IP addresses.")}
sx={{ opacity: "0.7" }}
/>
}
>
<GuardState
value={tcp ?? false}
valueProps="checked"
onCatch={onError}
onFormat={onSwitchFormat}
onChange={(e) => onChangeData({ "tcp-concurrent": e })}
onGuard={(e) => patchClash({ "tcp-concurrent": e })}
>
<Switch edge="end" />
</GuardState>
</SettingItem>
<SettingItem
label={t("Log Level")}
extra={

View File

@@ -33,6 +33,7 @@ interface IConfigData {
"external-controller": string;
secret: string;
"unified-delay": boolean;
"tcp-concurrent": boolean;
tun: {
stack: string;
device: string;