mirror of
https://github.com/CrazyJasonwell/clash-verge-rev.git
synced 2026-10-21 18:28:43 +08:00
fix: windows service mode
This commit is contained in:
1 parent
1328299fda
commit
dec503da81
4 files changed
+18
-10
No files matched your search
@@ -212,6 +212,8 @@ pub async fn patch_verge(patch: IVerge) -> Result<()> {
|
||||
let service_mode = patch.enable_service_mode;
|
||||
|
||||
if service_mode.is_some() {
|
||||
log::debug!(target: "app", "change service mode to {}", service_mode.unwrap());
|
||||
|
||||
Config::generate()?;
|
||||
CoreManager::global().run_core().await?;
|
||||
} else if tun_mode.is_some() {
|
||||
|
||||
Reference in new issue
Block a user