refactor: fix

This commit is contained in:
GyDi
2022-11-17 22:53:41 +08:00
parent 1880da6351
commit 5a35c5b928
2 changed files with 13 additions and 8 deletions

View File

@@ -153,7 +153,12 @@ pub async fn patch_clash(patch: Mapping) -> Result<()> {
};
// 激活配置
handle_activate().await?;
if mixed_port.is_some()
|| patch.get("secret").is_some()
|| patch.get("external-controller").is_some()
{
handle_activate().await?;
}
// 更新系统代理
if mixed_port.is_some() {