Skip to content
Snippets Groups Projects
Unverified Commit 4ea5bb23 authored by GyDi's avatar GyDi
Browse files

fix: check remote profile

parent e545d552
No related branches found
No related tags found
No related merge requests found
......@@ -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`");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment