fix: regenerate config before change core

This commit is contained in:
GyDi 2022-11-23 09:57:21 +08:00
parent e031389021
commit f477cecdeb
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A

View File

@ -222,6 +222,9 @@ impl CoreManager {
Config::verge().draft().clash_core = Some(clash_core); Config::verge().draft().clash_core = Some(clash_core);
// 更新配置
Config::generate()?;
self.check_config()?; self.check_config()?;
// 清掉旧日志 // 清掉旧日志