Skip to content

Commit

Permalink
fix: cannot get version from mihomo
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackhr-arch committed Sep 16, 2024
1 parent 42262b6 commit ba616b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/backend/impl_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl BackEnd {
use crate::clash::webapi::github::Request;
let clash_core_version = match self.api.version() {
Ok(v) => {
let v = serde_json::to_value(v)?;
let v: serde_json::Value = serde_json::from_str(&v).unwrap();
// test mihomo
let mihomo = v.get("version").and_then(|v| v.as_str());
// try get any
Expand Down

0 comments on commit ba616b9

Please sign in to comment.