fix: limit mihomo yaml wildcard quoting to fake-ip-filter

This commit is contained in:
wonfen
2026-07-06 06:49:43 +08:00
parent 3da6d7e466
commit b3f07acb5b
3 changed files with 97 additions and 89 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
use crate::constants::files::DNS_CONFIG;
use crate::utils::yaml_emitter;
use crate::{config::Config, process::AsyncHandler, utils::dirs};
use anyhow::Error;
use arc_swap::{ArcSwap, ArcSwapOption};
@@ -288,7 +287,7 @@ pub async fn create_backup() -> Result<(String, PathBuf), Error> {
obj.remove("webdav_url");
}
zip.start_file(dirs::VERGE_CONFIG, options)?;
zip.write_all(yaml_emitter::to_mihomo_config_string(&verge_config)?.as_bytes())?;
zip.write_all(serde_yaml_ng::to_string(&verge_config)?.as_bytes())?;
let dns_config_path = dirs::app_home_dir()?.join(DNS_CONFIG);
if dns_config_path.exists() {