fix: patch clash config

This commit is contained in:
GyDi
2022-11-18 18:37:17 +08:00
parent f30ef61b06
commit a89e433f3d
2 changed files with 10 additions and 4 deletions

View File

@@ -169,7 +169,9 @@ pub async fn patch_clash(patch: Mapping) -> Result<()> {
|| patch.get("secret").is_some()
|| patch.get("external-controller").is_some()
{
Config::generate()?;
CoreManager::global().run_core().await?;
handle::Handle::refresh_clash();
}
// 更新系统代理