fix: check remote profile

This commit is contained in:
GyDi 2022-11-02 00:51:25 +08:00
parent e545d552f6
commit 4ea5bb2390
No known key found for this signature in database
GPG Key ID: 58B15242BA8277A6

View File

@ -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`");
}