fix: windows service mode

This commit is contained in:
GyDi
2022-11-22 22:01:34 +08:00
parent 40c041031e
commit 1550d528bd
4 changed files with 18 additions and 10 deletions

View File

@@ -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() {