修复局域网无法使用的BUG (#7428)

Co-authored-by: wonfen <96291150+wonfen@users.noreply.github.com>
This commit is contained in:
doudouabc
2026-07-12 02:05:55 +08:00
committed by GitHub
co-authored by wonfen
parent 0c86b70fe9
commit 6ad480f898
2 changed files with 87 additions and 1 deletions
+2
View File
@@ -18,6 +18,8 @@ pub async fn patch_clash(patch: &Mapping) -> Result<()> {
if patch.get("secret").is_some() || patch.get("external-controller").is_some() {
Config::generate().await?;
CoreManager::global().restart_core().await?;
} else if patch.get("allow-lan").is_some() {
CoreManager::global().update_config_checked().await?;
} else {
if patch.get("mode").is_some() {
tray::Tray::global().update_menu_and_icon().await;