Skip to content

Commit

Permalink
Decoding should also be applied to the update command
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Sep 19, 2024
1 parent 19b64dd commit 67569e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mihoro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 67569e4

Please sign in to comment.