mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 04:43:44 +08:00
Revert "chore: change default test url"
This reverts commit a7cf968d04fe9abede0dc4478dc7c03edc224389.
This commit is contained in:
parent
a1996768f1
commit
a2d8c894fe
@ -52,7 +52,7 @@ pub async fn get_proxy_delay(
|
|||||||
let (url, headers) = clash_client_info()?;
|
let (url, headers) = clash_client_info()?;
|
||||||
let url = format!("{url}/proxies/{name}/delay");
|
let url = format!("{url}/proxies/{name}/delay");
|
||||||
|
|
||||||
let default_url = "http://www.apple.com/library/test/success.html";
|
let default_url = "http://1.1.1.1";
|
||||||
let test_url = test_url
|
let test_url = test_url
|
||||||
.map(|s| if s.is_empty() { default_url.into() } else { s })
|
.map(|s| if s.is_empty() { default_url.into() } else { s })
|
||||||
.unwrap_or(default_url.into());
|
.unwrap_or(default_url.into());
|
||||||
|
@ -189,7 +189,7 @@ export const MiscViewer = forwardRef<DialogRef>((props, ref) => {
|
|||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
sx={{ width: 250 }}
|
sx={{ width: 250 }}
|
||||||
value={values.defaultLatencyTest}
|
value={values.defaultLatencyTest}
|
||||||
placeholder="http://www.apple.com/library/test/success.html"
|
placeholder="http://1.1.1.1"
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
setValues((v) => ({ ...v, defaultLatencyTest: e.target.value }))
|
setValues((v) => ({ ...v, defaultLatencyTest: e.target.value }))
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ export const getProxyDelay = async (
|
|||||||
) => {
|
) => {
|
||||||
const params = {
|
const params = {
|
||||||
timeout: timeout || 10000,
|
timeout: timeout || 10000,
|
||||||
url: url || "http://www.apple.com/library/test/success.html",
|
url: url || "http://1.1.1.1",
|
||||||
};
|
};
|
||||||
const instance = await getAxios();
|
const instance = await getAxios();
|
||||||
const result = await instance.get(
|
const result = await instance.get(
|
||||||
@ -250,7 +250,7 @@ export const getGroupProxyDelays = async (
|
|||||||
) => {
|
) => {
|
||||||
const params = {
|
const params = {
|
||||||
timeout: timeout || 10000,
|
timeout: timeout || 10000,
|
||||||
url: url || "http://www.apple.com/library/test/success.html",
|
url: url || "http://1.1.1.1",
|
||||||
};
|
};
|
||||||
const instance = await getAxios();
|
const instance = await getAxios();
|
||||||
const result = await instance.get(
|
const result = await instance.get(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user