mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
fix: linux webkit error (#4995)
* fix: linux webkit error * docs: UPDATELOG.md
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
- 优化后端 i18n 资源占用
|
||||
- 改进 Linux 托盘支持并添加 `--no-tray` 选项
|
||||
- Linux 现在在新生成的配置中默认将 TUN 栈恢复为 mixed 模式
|
||||
- 为代理延迟测试的 URL 设置增加了保护以及添加了安全的备用 URL
|
||||
|
||||
### 🐞 修复问题
|
||||
|
||||
@@ -42,6 +43,7 @@
|
||||
- 修复 KDE + Wayland 下多屏显示 UI 异常
|
||||
- 修复 Windows 深色模式下首次启动客户端标题栏颜色异常
|
||||
- 修复静默启动不加载完整 WebView 的问题
|
||||
- 修复 Linux WebKit 网络进程的崩溃
|
||||
|
||||
## v2.4.2
|
||||
|
||||
|
||||
@@ -52,11 +52,13 @@ export const ProxyHead = ({
|
||||
}, []);
|
||||
|
||||
const { verge } = useVerge();
|
||||
const default_latency_test = verge!.default_latency_test!;
|
||||
const defaultLatencyUrl =
|
||||
verge?.default_latency_test?.trim() ||
|
||||
"https://cp.cloudflare.com/generate_204";
|
||||
|
||||
useEffect(() => {
|
||||
delayManager.setUrl(groupName, testUrl || url || default_latency_test);
|
||||
}, [groupName, testUrl, default_latency_test, url]);
|
||||
delayManager.setUrl(groupName, testUrl?.trim() || url || defaultLatencyUrl);
|
||||
}, [groupName, testUrl, defaultLatencyUrl, url]);
|
||||
|
||||
return (
|
||||
<Box sx={{ display: "flex", alignItems: "center", gap: 0.5, ...sx }}>
|
||||
|
||||
Reference in New Issue
Block a user