chore: replace node test with 1.1.1.1

This commit is contained in:
wonfen
2026-02-07 04:21:01 +08:00
parent e9d63aee5e
commit afa591c279
6 changed files with 6 additions and 5 deletions
+1
View File
@@ -24,5 +24,6 @@
- 安装服务失败时报告更详细的错误
- 避免脏订阅地址无法 Scheme 导入订阅
- macOS TUN 覆盖 DNS 时使用 114.114.114.114
- 连通性测试替换为更快的 https://1.1.1.1
</details>
@@ -601,7 +601,7 @@ export const GroupsEditorViewer = (props: Props) => {
/>
<TextField
autoComplete="new-password"
placeholder="https://cp.cloudflare.com/generate_204"
placeholder="https://1.1.1.1"
size="small"
sx={{ width: "calc(100% - 150px)" }}
{...field}
+1 -1
View File
@@ -67,7 +67,7 @@ export const ProxyHead = ({
const { verge } = useVerge();
const defaultLatencyUrl =
verge?.default_latency_test?.trim() ||
"https://cp.cloudflare.com/generate_204";
"https://1.1.1.1";
useEffect(() => {
delayManager.setUrl(groupName, testUrl?.trim() || url || defaultLatencyUrl);
+1 -1
View File
@@ -383,7 +383,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
spellCheck="false"
sx={{ width: 250, marginLeft: "auto" }}
value={values.defaultLatencyTest}
placeholder="https://cp.cloudflare.com/generate_204"
placeholder="https://1.1.1.1"
onChange={(e) =>
setValues((v) => ({ ...v, defaultLatencyTest: e.target.value }))
}
+1 -1
View File
@@ -340,7 +340,7 @@ export async function cmdGetProxyDelay(
url?: string,
) {
// 确保URL不为空
const testUrl = url || "https://cp.cloudflare.com/generate_204";
const testUrl = url || "https://1.1.1.1";
try {
// 不再在前端编码代理名称,由后端统一处理编码
+1 -1
View File
@@ -120,7 +120,7 @@ class DelayManager {
`[DelayManager] 获取测试URL,组: ${group}, URL: ${url || "未设置"}`,
);
// 如果未设置URL,返回默认URL
return url || "https://cp.cloudflare.com/generate_204";
return url || "https://1.1.1.1";
}
setListener(