diff --git a/src-tauri/src/data/prfitem.rs b/src-tauri/src/data/prfitem.rs index 429b7a5..ea2dd11 100644 --- a/src-tauri/src/data/prfitem.rs +++ b/src-tauri/src/data/prfitem.rs @@ -285,7 +285,7 @@ impl PrfItem { let yaml = serde_yaml::from_str::(&data) // .context("the remote profile data is invalid yaml")?; - if !yaml.contains_key("proxies") || !yaml.contains_key("proxy-providers") { + if !yaml.contains_key("proxies") && !yaml.contains_key("proxy-providers") { bail!("profile does not contain `proxies` or `proxy-providers`"); }