Skip to content

Commit

Permalink
fix: check remote profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzgydi committed Nov 1, 2022
1 parent e545d55 commit 4ea5bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/data/prfitem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl PrfItem {
let yaml = serde_yaml::from_str::<Mapping>(&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`");
}

Expand Down

0 comments on commit 4ea5bb2

Please sign in to comment.