mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
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…
Reference in New Issue
Block a user