mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
chore: Replace test URL to support iPv4&iPv6 (#2033)
This commit is contained in:
@@ -52,7 +52,7 @@ pub async fn get_proxy_delay(
|
||||
let (url, headers) = clash_client_info()?;
|
||||
let url = format!("{url}/proxies/{name}/delay");
|
||||
|
||||
let default_url = "http://1.1.1.1";
|
||||
let default_url = "https://cp.cloudflare.com/generate_204";
|
||||
let test_url = test_url
|
||||
.map(|s| if s.is_empty() { default_url.into() } else { s })
|
||||
.unwrap_or(default_url.into());
|
||||
|
||||
Reference in New Issue
Block a user