소스 검색

fix: check remote profile

GyDi 2 년 전
부모
커밋
4ea5bb2390
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src-tauri/src/data/prfitem.rs

+ 1 - 1
src-tauri/src/data/prfitem.rs

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