diff --git a/src-tauri/src/core/profiles.rs b/src-tauri/src/core/profiles.rs index c84eb717ec1a4d2edd49f308b2065c89c04e49f7..19555261ca50c86442f7a1322aa4b4e8fe82e978 100644 --- a/src-tauri/src/core/profiles.rs +++ b/src-tauri/src/core/profiles.rs @@ -196,9 +196,8 @@ impl PrfItem { if !with_proxy { builder = builder.no_proxy(); } - if let Some(user_agent) = user_agent { - builder = builder.user_agent(user_agent); - } + + builder = builder.user_agent(user_agent.unwrap_or("clash-verge/v0.1.0".into())); let resp = builder.build()?.get(url).send().await?; let header = resp.headers();