fix: check remote profile
This commit is contained in:
parent
e545d552f6
commit
4ea5bb2390
@ -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`");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user