From 67569e4166925a8e46c578f74f0668be354655fd Mon Sep 17 00:00:00 2001 From: spencerwooo Date: Thu, 19 Sep 2024 09:01:51 +0800 Subject: [PATCH] Decoding should also be applied to the update command --- src/mihoro.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mihoro.rs b/src/mihoro.rs index bb3932a..5a33593 100644 --- a/src/mihoro.rs +++ b/src/mihoro.rs @@ -86,7 +86,7 @@ impl Mihoro { ) .await?; - // Try to decode base64 file in place if file is base64 encoding , otherwise do nothing + // Try to decode base64 file in place if file is base64 encoding, otherwise do nothing try_decode_base64_file_inplace(&self.mihomo_target_config_path)?; apply_mihomo_override(&self.mihomo_target_config_path, &self.config.mihomo_config)?; @@ -115,6 +115,10 @@ impl Mihoro { &self.mihomo_target_config_path, ) .await?; + + // Try to decode base64 file in place if file is base64 encoding, otherwise do nothing + try_decode_base64_file_inplace(&self.mihomo_target_config_path)?; + apply_mihomo_override(&self.mihomo_target_config_path, &self.config.mihomo_config)?; println!( "{} Updated and applied config overrides",