fix: update default latency test URL to use HTTPS

This commit is contained in:
Tunglies
2025-06-02 12:41:41 +08:00
parent a36d2633c9
commit d5c0b09a2f
6 changed files with 7 additions and 6 deletions

View File

@@ -150,7 +150,7 @@ impl MihomoManager {
test_url: Option<String>,
timeout: i32,
) -> Result<serde_json::Value, String> {
let test_url = test_url.unwrap_or("http://cp.cloudflare.com/generate_204".to_string());
let test_url = test_url.unwrap_or("https://www.gstatic.com/generate_204".to_string());
let url = format!(
"{}/proxies/{}/delay?url={}&timeout={}",
self.mihomo_server, name, test_url, timeout