mirror of
https://github.com/clash-verge-rev/clash-verge-rev
synced 2025-05-05 01:23:43 +08:00
fix: check remote profile
This commit is contained in:
parent
1090e7ceae
commit
e007bcb640
@ -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